-
Notifications
You must be signed in to change notification settings - Fork 2
Declaration
lallysmbc edited this page Apr 6, 2021
·
13 revisions
Refer to Stockport Design System for styling information and reference images
| Property | Type | Required | Default Value | Description |
|---|---|---|---|---|
| QuestionId | string | ✔️ | ❌ | Unique question id allowed charatcers are [a-zA-Z] only |
| Label | string | ✔️ | ❌ | Label associated with the search term |
| Text | string | ✔️ | ❌ | Describes what the reason of the checkbox is |
| Hint | string | ❌ | ❌ | Hint which appears above the declaration checkbox |
| Optional | bool | ❌ | false | |
| CustomValidationMessage | string | ❌ | ❌ | Set a custom validation message for when user does not check the declaration checkbox |
| TargetMapping | string | ❌ | ❌ | Used for custom object mapping when creating submit data |
| LegendAsH1 | bool | ❌ | false | Display the inputs label as a h1 and not a label (if this is set to true, HideTitle in the Page properties should also be set to true) |
| HideLabel | bool | ❌ | false | Hide the label above the checkbox |
| StrongLabel | bool | ❌ | true | Specifies if the label associated with the declaration is strong(fieldset-heading--m) |
| SummaryLabel | string | ❌ | ❌ | Change the label associated with this input on the summary |
{
"Title": "Required Declaration",
"PageSlug": "page1",
"HideTitle": false,
"Elements": [
{
"Type": "Declaration",
"Properties": {
"Label": "Declaration",
"QuestionId": "Declaration",
"Text": "I agree to the terms and conditions",
"StrongLabel": false
}
}
]
}{
"Type": "Declaration",
"Properties": {
"Label": "Declaration",
"LegendAsH1": true,
"QuestionId": "Declaration",
"Text": "I agree to the terms and conditions",
"Hint": "This is a required declaration",
"CustomValidationMessage": "You must agree to the terms and conditions",
"Optional": false,
"TargetMapping": "customer.Declaration",
"HideLabel": true,
"StrongLabel": false
}
}- Availability
- Actions
- Behaviours
- Breadcrumbs
-
Conditions
- String Conditions
- Date Conditions
- Integer Conditions
- File Upload Conditions
- Custom validation
-
Elements
- AddAnother
- Address
- Button
- Booking
- Checkbox
- Date Input
- Date Picker
- Declaration
- Document Download
- Document Upload
- File Upload
- H1-H6
- HR
- Image
- Inline Alert
- Link
- Map
- Multiple File Upload
- OrderedList
- Organisation
- P
- Radio
- Select
- Street
- Summary
- Success page
- Textarea
- Textbox
- Time input
- Unordered List
- Uploaded files summary
- Warning
- EnabledFor
- Feedback form
- File uploads
- Form Schema
- Header
- Inbound Values
- Integrating with PowerAutomate/0365
- Lookup
- Page
- Payment & Payment calculations
- Preview data structure
- Render conditions
- Reusable elements
- Structure tests
- Success page
- Tag parsers
- Target mapping
- Validators