Consent

Add a consent checkbox.

Add a consent checkbox.

Block metadata

FieldValue
Namexp/form-field-consent
TitleConsent
Categoryxpac-form-generic-field
API version3
Keywordsxpac, form, field, consent
Packageforms
Metadata filedist/packages/forms/blocks/consent/block.json

Supports

FeatureValue
classNameDisabled

Attributes

NameTypeDefaultSource/Enum
additionalAttributesobject{}—
descriptionstring""source html; selector .xp-block-form-field__description
idstring""—
labelstring"I agree to the <a href=\"#\">terms and conditions</a>"—
namestring""—
rulesobject{"required":{"value":false,"message":""}}—

On this page