Prefilling Forms

Specific input elements (DOM nodes) can be marked to be prefilled by the widget

circle-exclamation
circle-info

The available data types can be found here

Examples

Text inputs (input type="text", type="email", type="hidden", textarea)

<div>
  First Name:
  <input
    type="text"
    data-ms-member-info="firstName"
  />
  Last Name:
  <textarea
    data-ms-member-info="lastName"
  >
  </textarea>
</div>
circle-info

Text and number type fields will be rendered normally Select (radio) type field value will be used to fill out the input Multiple select field selected values will be comma and space separated ("apple, pear") Checkbox type fields will be rendered as "Yes" or "No", translated per the selected language

Radio buttons (input type="radio")

circle-info

The value attribute needs to match exactly (case sensitive) to the stored value in order to be selected

circle-info

The value attribute needs to match exactly (case sensitive) to the stored value in order to be selected

Checkbox (input type="checkbox")

circle-info

The checkbox will only be updated if the referenced custom input is also of checkbox type

Last updated

Was this helpful?