Mapping Field Attributes for an Existing Web Form
You can map field attributes for an existing web form to the Purposes, Purpose Preferences, and data elements defined on a Collection Point directly on the Integrations tab on the Collection Point Details screen. For the SDK to correctly record the data subjects consent and data, you must map the form input elements to the Purposes, Purpose Preference options, and data elements defined for the Collection Point. This SDK Mapping feature allows you to more easily integrate your existing web forms using the Hosted SDK, which then makes it easier to update the settings for your Collection Point without having to replace the SDK integrated on your site.
To map web form fields
In order to map web form fields, the Use Hosted SDK Settings setting must be enabled on the Settings tab.
Form Fields Mapping Reference
The Form Fields Mapping section allows you to define the mapping of form input elements for an existing web form directly within the application for easier integration with the Hosted SDK. In this section, you can enter the attributes and values found in the HTML of your existing web form within the corresponding Element Attribute and Attribute Value fields. Once you've identified the form attribute to the SDK, the SDK will take the value of that HTML field and submit it as part of the consent receipt. You will then need to complete the mapping for each of the web form fields for which you want to capture the data.
- Field
- Description
- Type
-
Indicates the type of data, such as form setting, data element, Purpose, Purpose Preference, etc.
- Name
-
Indicates the name of the data elements, Purposes, Purpose Preferences, and options configured within the application.
- GUID
-
Indicates the system GUID provided by the code.
- Element Attribute
-
HTML attribute for the form field that contains a unique value which the SDK can map to the data type. Default entries appear in this field, but can be changed.
- Attribute Value
-
Value contained in the attribute for the SDK to match against when recording the consent action. Default entries appear in this field, but can be changed.
- Capture / Value
-
This check box appears for data elements. If selected, the SDK will capture the data element value. If cleared, the SDK will not capture the data element value.