Consent
Add a consent checkbox.
Add a consent checkbox.
Block metadata
| Field | Value |
|---|---|
| Name | xp/form-field-consent |
| Title | Consent |
| Category | xpac-form-generic-field |
| API version | 3 |
| Keywords | xpac, form, field, consent |
| Package | forms |
| Metadata file | dist/packages/forms/blocks/consent/block.json |
Supports
| Feature | Value |
|---|---|
className | Disabled |
Attributes
| Name | Type | Default | Source/Enum |
|---|---|---|---|
additionalAttributes | object | {} | — |
description | string | "" | source html; selector .xp-block-form-field__description |
id | string | "" | — |
label | string | "I agree to the <a href=\"#\">terms and conditions</a>" | — |
name | string | "" | — |
rules | object | {"required":{"value":false,"message":""}} | — |