@designcrowd/library.brand-page 5.16.5 → 5.16.6-contact-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-BUFejFtN.js → CreatedOnBrandCrowd-de-de-daLUJHsv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-3OXPUFEz.js → CreatedOnBrandCrowd-en-us-Du_CLJqQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CLsz3yPd.js → CreatedOnBrandCrowd-es-es-7Uck8smQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BybMTsPA.js → CreatedOnBrandCrowd-fr-ca-P6TqDsaL.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BybMTsPA.js → CreatedOnBrandCrowd-fr-fr-P6TqDsaL.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BXYsZDY_.js → CreatedOnBrandCrowd-pt-br-DS5JaMb6.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BXYsZDY_.js → CreatedOnBrandCrowd-pt-pt-DS5JaMb6.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-7PmR3pRl.js → CreatedOnDcom-de-de-CzHhqO7j.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CTy6x_OP.js → CreatedOnDcom-en-us-C6LGd91U.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Suv_8nrd.js → CreatedOnDcom-es-es-DUvWyhO-.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DTRurRq6.js → CreatedOnDcom-fr-ca-XIylNwqV.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BUrIJTNj.js → CreatedOnDcom-fr-fr-D28ah3Z_.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-DEURGDlS.js → CreatedOnDcom-pt-br-CEuf8Drz.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DtkXVuez.js → CreatedOnDcom-pt-pt-c_BU4Ov-.js} +1 -1
- package/lib/src/brand-page/clients/brand-page.client.d.ts +2 -0
- package/lib/src/brand-page/clients/brand-page.client.js +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +6 -1
- package/lib/src/brand-page/models/index.d.ts +3 -0
- package/lib/src/brand-page/models/index.js +3 -0
- package/lib/src/brand-page/utils/migration/migration-09.d.ts +2 -0
- package/lib/src/brand-page/utils/migration/migration-09.js +34 -0
- package/lib/src/brand-page/utils/migration.util.js +6 -0
- package/lib/src/brand-page/utils/validation.util.js +3 -3
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +39 -18
- package/lib/src/brand-page-maker/models/content-settings.js +21 -0
- package/lib/src/{bundled-translations-Dw3XtNmX.js → bundled-translations-CqXktQ0V.js} +14 -14
- package/lib/src/{bundled-translations.de-DE-B82Ik9M7.js → bundled-translations.de-DE-qXWi1vsr.js} +12 -12
- package/lib/src/{bundled-translations.es-ES-cf3pdNuN.js → bundled-translations.es-ES--1DXGHQy.js} +19 -19
- package/lib/src/{bundled-translations.fr-CA-DP44EcAZ.js → bundled-translations.fr-CA-BMO8OmDQ.js} +17 -17
- package/lib/src/{bundled-translations.fr-FR-V0Zt25kg.js → bundled-translations.fr-FR-seCkVaCv.js} +9 -9
- package/lib/src/{bundled-translations.pt-BR-Brv6rCss.js → bundled-translations.pt-BR-BJdzjsZK.js} +20 -20
- package/lib/src/{bundled-translations.pt-PT-BTgscCTG.js → bundled-translations.pt-PT-CyA5MG7E.js} +20 -20
- package/lib/src/bundles/bundled-translations.de-DE.json +12 -1
- package/lib/src/bundles/bundled-translations.es-ES.json +12 -1
- package/lib/src/bundles/bundled-translations.fr-CA.json +12 -1
- package/lib/src/bundles/bundled-translations.fr-FR.json +12 -1
- package/lib/src/bundles/bundled-translations.json +12 -1
- package/lib/src/bundles/bundled-translations.pt-BR.json +12 -1
- package/lib/src/bundles/bundled-translations.pt-PT.json +12 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +0 -3
- package/lib/src/css/library.brand-page-brandPage.min.css +0 -3
- package/lib/src/css/library.brand-page-designCom.min.css +0 -3
- package/lib/src/css/library.brand-page-preview.min.css +0 -3
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-MNw1rB03.js → lib-hSbt0wSC.js} +16854 -16665
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.d.ts +34 -1
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +41 -1
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +1 -4
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +11 -4
- package/package.json +1 -1
- package/src/brand-page/clients/brand-page.client.ts +3 -1
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -1
- package/src/brand-page/models/index.ts +3 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -3
- package/src/brand-page/utils/migration/migration-09.ts +43 -0
- package/src/brand-page/utils/migration.util.ts +6 -0
- package/src/brand-page/utils/validation.util.ts +3 -3
- package/src/brand-page-maker/constants/config-settings-constant.ts +40 -18
- package/src/brand-page-maker/models/content-settings.ts +21 -0
- package/src/bundles/bundled-translations.de-DE.json +12 -1
- package/src/bundles/bundled-translations.es-ES.json +12 -1
- package/src/bundles/bundled-translations.fr-CA.json +12 -1
- package/src/bundles/bundled-translations.fr-FR.json +12 -1
- package/src/bundles/bundled-translations.json +12 -1
- package/src/bundles/bundled-translations.pt-BR.json +12 -1
- package/src/bundles/bundled-translations.pt-PT.json +12 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +2 -0
- package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +45 -1
- package/src/shared/content-settings/components/form-fields-field/FormFieldsField.vue +106 -32
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.de-DE.json +10 -1
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.es-ES.json +10 -1
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.fr-CA.json +10 -1
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.fr-FR.json +10 -1
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.json +10 -1
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.pt-BR.json +10 -1
- package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.pt-PT.json +10 -1
- package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +15 -6
|
@@ -33,7 +33,7 @@ const submitContactForm = async (brandPageToken, contentBlockId, values) => {
|
|
|
33
33
|
const csrfToken = csrfUtil.getCsrfTokenFromMetaHeader();
|
|
34
34
|
const formBody = {
|
|
35
35
|
contentBlockId,
|
|
36
|
-
|
|
36
|
+
fields: values,
|
|
37
37
|
};
|
|
38
38
|
await axios.post(`/api/contact/${brandPageToken}`, formBody, {
|
|
39
39
|
headers: {
|
|
@@ -146,7 +146,12 @@ export default defineComponent({
|
|
|
146
146
|
let result;
|
|
147
147
|
this.isSubmitting = true;
|
|
148
148
|
try {
|
|
149
|
-
result = await brandPageClient.submitContactForm(this.context.brandPageToken, this.viewModel.id, this.values.map((v) => ({
|
|
149
|
+
result = await brandPageClient.submitContactForm(this.context.brandPageToken, this.viewModel.id, this.values.map((v) => ({
|
|
150
|
+
id: v.field.id,
|
|
151
|
+
name: v.field.name,
|
|
152
|
+
type: v.field.type,
|
|
153
|
+
value: v.value,
|
|
154
|
+
})));
|
|
150
155
|
}
|
|
151
156
|
finally {
|
|
152
157
|
this.isSubmitting = false;
|
|
@@ -199,6 +199,9 @@ export declare const FORM_FIELD_IDS: {
|
|
|
199
199
|
readonly emailAddress: "emailAddress";
|
|
200
200
|
readonly phoneNumber: "phoneNumber";
|
|
201
201
|
readonly message: "message";
|
|
202
|
+
readonly customField1: "customField1";
|
|
203
|
+
readonly customField2: "customField2";
|
|
204
|
+
readonly customField3: "customField3";
|
|
202
205
|
};
|
|
203
206
|
export declare const BUTTON_LINK_TYPE: {
|
|
204
207
|
readonly url: "url";
|
|
@@ -129,6 +129,9 @@ export const FORM_FIELD_IDS = {
|
|
|
129
129
|
emailAddress: 'emailAddress',
|
|
130
130
|
phoneNumber: 'phoneNumber',
|
|
131
131
|
message: 'message',
|
|
132
|
+
customField1: 'customField1',
|
|
133
|
+
customField2: 'customField2',
|
|
134
|
+
customField3: 'customField3',
|
|
132
135
|
};
|
|
133
136
|
export const BUTTON_LINK_TYPE = {
|
|
134
137
|
url: 'url',
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FORM_FIELD_IDS } from '../..';
|
|
2
|
+
import { isContact } from '../model.util';
|
|
3
|
+
export const migration09 = async (migrationResult) => {
|
|
4
|
+
const { brandPageModel } = migrationResult;
|
|
5
|
+
brandPageModel.pages.forEach((page) => {
|
|
6
|
+
page.contents.forEach((content) => {
|
|
7
|
+
if (isContact(content)) {
|
|
8
|
+
const contactForm = content;
|
|
9
|
+
contactForm.fields.push({
|
|
10
|
+
id: FORM_FIELD_IDS.customField1,
|
|
11
|
+
name: 'Custom Field',
|
|
12
|
+
enabled: false,
|
|
13
|
+
required: false,
|
|
14
|
+
type: 'text',
|
|
15
|
+
});
|
|
16
|
+
contactForm.fields.push({
|
|
17
|
+
id: FORM_FIELD_IDS.customField2,
|
|
18
|
+
name: 'Custom Field',
|
|
19
|
+
enabled: false,
|
|
20
|
+
required: false,
|
|
21
|
+
type: 'text',
|
|
22
|
+
});
|
|
23
|
+
contactForm.fields.push({
|
|
24
|
+
id: FORM_FIELD_IDS.customField3,
|
|
25
|
+
name: 'Custom Field',
|
|
26
|
+
enabled: false,
|
|
27
|
+
required: false,
|
|
28
|
+
type: 'text',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return migrationResult;
|
|
34
|
+
};
|
|
@@ -11,6 +11,7 @@ import { migration05_1 } from './migration/migration-05_1';
|
|
|
11
11
|
import { migration05_2 } from './migration/migration-05_2';
|
|
12
12
|
import { migration07 } from './migration/migration-07';
|
|
13
13
|
import { migration08 } from './migration/migration-08';
|
|
14
|
+
import { migration09 } from './migration/migration-09';
|
|
14
15
|
const MIGRATION_TABLE = [
|
|
15
16
|
{
|
|
16
17
|
version: 1,
|
|
@@ -68,6 +69,11 @@ const MIGRATION_TABLE = [
|
|
|
68
69
|
migrateFn: migration08,
|
|
69
70
|
description: 'Migrating logo content sizes for brandPage and brandContact',
|
|
70
71
|
},
|
|
72
|
+
{
|
|
73
|
+
version: 9,
|
|
74
|
+
migrateFn: migration09,
|
|
75
|
+
description: 'Migrating contact form with additional 3 custom fields',
|
|
76
|
+
},
|
|
71
77
|
];
|
|
72
78
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
73
79
|
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
@@ -2,7 +2,7 @@ import { isEmail } from '../../utils/validator.util';
|
|
|
2
2
|
const MAX_EMAIL_LENGTH = 320;
|
|
3
3
|
const MAX_PHONE_LENGTH = 50;
|
|
4
4
|
const MAX_NAME_LENGTH = 250;
|
|
5
|
-
const MAX_MESSAGE_LENGTH =
|
|
5
|
+
const MAX_MESSAGE_LENGTH = 1000;
|
|
6
6
|
export const getEmailValidationError = (email, isRequired) => {
|
|
7
7
|
if (email.trim() === '') {
|
|
8
8
|
if (isRequired) {
|
|
@@ -29,10 +29,10 @@ export const getPhoneValidationError = (phone, isRequired) => {
|
|
|
29
29
|
};
|
|
30
30
|
export const getNameValidationError = (name, isRequired) => {
|
|
31
31
|
if (name.trim() === '' && isRequired) {
|
|
32
|
-
return 'Please enter your
|
|
32
|
+
return 'Please enter your message.';
|
|
33
33
|
}
|
|
34
34
|
else if (name.length > MAX_NAME_LENGTH) {
|
|
35
|
-
return 'The
|
|
35
|
+
return 'The message you entered is too long.';
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
export const getMessageValidationError = (message, isRequired) => {
|
|
@@ -1665,6 +1665,11 @@ export const SUPPORT_ME_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
1665
1665
|
isLocked: false,
|
|
1666
1666
|
type: 'support-me',
|
|
1667
1667
|
});
|
|
1668
|
+
const CONTACT_FORM_GROUPS = {
|
|
1669
|
+
formFields: 'formFields',
|
|
1670
|
+
settings: 'settings',
|
|
1671
|
+
style: 'style',
|
|
1672
|
+
};
|
|
1668
1673
|
export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
1669
1674
|
type: 'contact-form',
|
|
1670
1675
|
category: 'general',
|
|
@@ -1672,25 +1677,41 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
|
1672
1677
|
defaultIconName: 'form',
|
|
1673
1678
|
displayMode: CONTENT_SETTINGS_DISPLAY_MODES.focused,
|
|
1674
1679
|
displayName: contentSettingsTr(`contactFormDisplayName`),
|
|
1675
|
-
fieldGroups:
|
|
1680
|
+
fieldGroups: [
|
|
1681
|
+
{
|
|
1682
|
+
id: CONTACT_FORM_GROUPS.settings,
|
|
1683
|
+
displayName: contentSettingsTr(`settingsDisplayName`),
|
|
1684
|
+
isCollapsed: false,
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
id: CONTACT_FORM_GROUPS.formFields,
|
|
1688
|
+
displayName: contentSettingsTr(`formFieldsDisplayName`),
|
|
1689
|
+
isCollapsed: false,
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
id: CONTACT_FORM_GROUPS.style,
|
|
1693
|
+
displayName: contentSettingsTr(`styleDisplayName`),
|
|
1694
|
+
isCollapsed: true,
|
|
1695
|
+
},
|
|
1696
|
+
],
|
|
1676
1697
|
fields: {
|
|
1677
1698
|
imageUrl: {
|
|
1678
1699
|
type: 'image',
|
|
1679
1700
|
replaceImageSettings: contactFormReplaceImageSettings(),
|
|
1680
1701
|
title: contentSettingsTr(`imageTitle`),
|
|
1681
|
-
groupId:
|
|
1702
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1682
1703
|
visibilityAssessor: imageUrlVisibilityAssessor,
|
|
1683
1704
|
},
|
|
1684
1705
|
imageUrlOverride: {
|
|
1685
1706
|
type: 'personalisation-override',
|
|
1686
|
-
groupId:
|
|
1707
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1687
1708
|
visibilityAssessor: (c, b) => imageUrlVisibilityAssessor(c, b) &&
|
|
1688
1709
|
personalisationOverrideVisibility(c, b, 'imageUrl'),
|
|
1689
1710
|
},
|
|
1690
1711
|
colorReplacements: {
|
|
1691
1712
|
type: 'color-replacements',
|
|
1692
1713
|
title: contentSettingsTr(`shapeColorsTitle`),
|
|
1693
|
-
groupId:
|
|
1714
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1694
1715
|
visibilityAssessor: colorReplacementVisibilityTypeAssessor,
|
|
1695
1716
|
},
|
|
1696
1717
|
displayStyle: {
|
|
@@ -1699,67 +1720,67 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
|
1699
1720
|
defaultValue: DISPLAY_STYLE_PREVIEW,
|
|
1700
1721
|
title: contentSettingsTr(`displayStyleTitle`),
|
|
1701
1722
|
optionsConvertor: displayStyleConvertor,
|
|
1702
|
-
groupId:
|
|
1723
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1703
1724
|
visibilityAssessor: displayTypeVisibilityAssessor,
|
|
1704
1725
|
},
|
|
1705
1726
|
title: {
|
|
1706
1727
|
type: 'text',
|
|
1707
1728
|
placeholder: contentSettingsTr(`titlePlaceholder`),
|
|
1708
1729
|
title: contentSettingsTr(`titleTitle`),
|
|
1709
|
-
groupId:
|
|
1730
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1710
1731
|
maxLength: 200,
|
|
1711
1732
|
},
|
|
1712
1733
|
titleOverride: {
|
|
1713
1734
|
type: 'personalisation-override',
|
|
1714
|
-
groupId:
|
|
1735
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1715
1736
|
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'title'),
|
|
1716
1737
|
},
|
|
1717
1738
|
description: {
|
|
1718
1739
|
type: 'textarea',
|
|
1719
1740
|
placeholder: contentSettingsTr(`descriptionPlaceholder`),
|
|
1720
1741
|
title: contentSettingsTr(`descriptionTitle`),
|
|
1721
|
-
groupId:
|
|
1742
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1722
1743
|
maxLength: 1000,
|
|
1723
1744
|
},
|
|
1724
1745
|
descriptionOverride: {
|
|
1725
1746
|
type: 'personalisation-override',
|
|
1726
|
-
groupId:
|
|
1747
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1727
1748
|
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'description'),
|
|
1728
1749
|
},
|
|
1729
1750
|
buttonText: {
|
|
1730
1751
|
type: 'text',
|
|
1731
1752
|
title: contentSettingsTr(`buttonTitle`),
|
|
1732
|
-
groupId:
|
|
1753
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1733
1754
|
showToggle: false,
|
|
1734
1755
|
maxLength: 60,
|
|
1735
1756
|
},
|
|
1736
1757
|
buttonTextOverride: {
|
|
1737
1758
|
type: 'personalisation-override',
|
|
1738
|
-
groupId:
|
|
1759
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1739
1760
|
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'buttonText'),
|
|
1740
1761
|
},
|
|
1741
1762
|
fields: {
|
|
1742
1763
|
type: 'form-fields',
|
|
1743
|
-
groupId:
|
|
1764
|
+
groupId: CONTACT_FORM_GROUPS.formFields,
|
|
1744
1765
|
},
|
|
1745
1766
|
successMessage: {
|
|
1746
1767
|
type: 'textarea',
|
|
1747
1768
|
placeholder: contentSettingsTr(`successMessagePlaceholder`),
|
|
1748
1769
|
title: contentSettingsTr(`successMessageTitle`),
|
|
1749
|
-
groupId:
|
|
1770
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1750
1771
|
},
|
|
1751
1772
|
responseEmail: {
|
|
1752
1773
|
type: 'email',
|
|
1753
1774
|
title: contentSettingsTr(`sendResponsesToTitle`),
|
|
1754
1775
|
placeholder: contentSettingsTr(`recipientEmailPlaceholder`),
|
|
1755
|
-
groupId:
|
|
1776
|
+
groupId: CONTACT_FORM_GROUPS.settings,
|
|
1756
1777
|
},
|
|
1757
1778
|
layoutStyle: {
|
|
1758
1779
|
type: 'radio',
|
|
1759
1780
|
role: 'multi',
|
|
1760
1781
|
title: contentSettingsTr(`displayStyleTitle`),
|
|
1761
1782
|
optionsConvertor: contactLayoutStyleConvertor,
|
|
1762
|
-
groupId:
|
|
1783
|
+
groupId: CONTACT_FORM_GROUPS.style,
|
|
1763
1784
|
variant: 'icon',
|
|
1764
1785
|
visibilityAssessor: brandSiteTypeVisibilityAssessor,
|
|
1765
1786
|
},
|
|
@@ -1768,7 +1789,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
|
1768
1789
|
buttonTextStyle: DEFAULT_BUTTON_TEXT_STYLE_FIELD(),
|
|
1769
1790
|
cardStyle: {
|
|
1770
1791
|
type: 'color',
|
|
1771
|
-
groupId:
|
|
1792
|
+
groupId: CONTACT_FORM_GROUPS.style,
|
|
1772
1793
|
defaultValue: {},
|
|
1773
1794
|
isInline: true,
|
|
1774
1795
|
showToggle: false,
|
|
@@ -1779,7 +1800,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
|
1779
1800
|
},
|
|
1780
1801
|
backgroundStyle: {
|
|
1781
1802
|
type: 'color',
|
|
1782
|
-
groupId:
|
|
1803
|
+
groupId: CONTACT_FORM_GROUPS.style,
|
|
1783
1804
|
defaultValue: {},
|
|
1784
1805
|
isInline: true,
|
|
1785
1806
|
showToggle: false,
|
|
@@ -1788,7 +1809,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
|
1788
1809
|
},
|
|
1789
1810
|
messageTextColor: {
|
|
1790
1811
|
type: 'color',
|
|
1791
|
-
groupId:
|
|
1812
|
+
groupId: CONTACT_FORM_GROUPS.style,
|
|
1792
1813
|
defaultValue: {},
|
|
1793
1814
|
isInline: true,
|
|
1794
1815
|
showToggle: false,
|
|
@@ -397,6 +397,27 @@ export const createInitialContactFormContent = (options) => {
|
|
|
397
397
|
required: true,
|
|
398
398
|
type: 'text-area',
|
|
399
399
|
},
|
|
400
|
+
{
|
|
401
|
+
id: FORM_FIELD_IDS.customField1,
|
|
402
|
+
name: contentSettingsTr(`customFieldLabel`),
|
|
403
|
+
enabled: false,
|
|
404
|
+
required: false,
|
|
405
|
+
type: 'text',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
id: FORM_FIELD_IDS.customField2,
|
|
409
|
+
name: contentSettingsTr(`customFieldLabel`),
|
|
410
|
+
enabled: false,
|
|
411
|
+
required: false,
|
|
412
|
+
type: 'text',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
id: FORM_FIELD_IDS.customField3,
|
|
416
|
+
name: contentSettingsTr(`customFieldLabel`),
|
|
417
|
+
enabled: false,
|
|
418
|
+
required: false,
|
|
419
|
+
type: 'text',
|
|
420
|
+
},
|
|
400
421
|
],
|
|
401
422
|
successMessage: contentSettingsTr(`formSuccessMessage`),
|
|
402
423
|
responseEmail: options?.userState.emailAddress || '',
|