Custom Form Controls
When creating a custom Sitecore Experience Form Field that needs to be mapped to a Salesforce field in the S4S Form Field Mapping Wizard, it is necessary to add the custom form field Template IDs separated by commas to the CustomFormFieldTemplateIds
setting in the App_Config\Modules\S4S\S4SMappings.config
file.
The Field Template is referenced in the ‘Field Template’ field on the custom field:
Navigate to the related Template to retrieve the Template ID value:
Copy the Item ID of the template (in the example above it is 48B1692F-B07F-44BD-9A41-7430B42E8B67).
Add this value to the App_Config\Modules\S4S\S4SMappings.config
file:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:x="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings>
<setting name="FuseIT.S4SMapping.ConnectionString" value="S4SConnString" />
<!-- Add custom form field template ids separated by commas. Example - {0000000-0000-0000-0000-000000000000},{11111111-1111-1111-1111-111111111111} -->
<setting name="CustomFormFieldTemplateIds" value="{48B1692F-B07F-44BD-9A41-7430B42E8B67}"/>
</settings>
Template Ids for built-in field types not included by default can be added in the same way. In this case, the ID can usually be found under Templates\System\Forms\Fields (shown selected below):