Skip to content

Forms

Add the following attributes to every form HTML element.

HTML Data Attributes

<form
  data-layer-identifier="<identifier>"
  data-layer-name="<name>"
>

Variable Definitions

Field Type Required Description Example Pattern Min Length Max Length Minimum Maximum Multiple Of
identifier string recommended The form machine-readable name. This should be a unique value specific to this form, if one exists. If one does not exist, this can also be populated with the same value as the . ecp_locator, free_trial
name string required The form human-readable name. This should be something that an analyst without a deep knowledge of the technical implementation of the site can easily identify the form with. It should be lowercase snake_case. ecp_locator, free_trial