-
Notifications
You must be signed in to change notification settings - Fork 2
Textarea
jordan-burns edited this page Feb 3, 2022
·
11 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 question |
StrongLabel | bool | ❌ | true | Display label strongly |
LabelAsH1 | bool | ❌ | false | Display Label as h1 not a label (if this is set to true, HideTitle in the Page properties should also be set to true) |
CustomValidationMessage | string | ❌ | ❌ | Set a custom validation message for when user doesn't complete the input |
Warning | string | ❌ | ❌ | Warning which appears above the input NOTE: Only use one of Warning, Hint or IAG |
Hint | string | ❌ | ❌ | Hint which appears above the input NOTE: Only use one of Warning, Hint or IAG |
IAG | string | ❌ | ❌ | Inset text to appear below the Label. NOTE: Only use one of Warning, Hint or IAG |
MaxLength | int | ❌ | 200 | The maximum length of the input value |
Optional | bool | ❌ | false | |
OptionalIf | Condition | ❌ | ❌ | A condition that can be used to determine if the element is optional by comparing it to an earlier answer |
TargetMapping | string | ❌ | ❌ | TargetMapping |
DisplayCharacterCount | bool | ❌ | false | Displays a countdown of the remaining characters available |
Spellcheck | bool | ❌ | true | Can be used to enable browser spellchecking (refer to Govuk Design System for when to use this) |
SummaryLabel | string | ❌ | ❌ | Change the label associated with this input on the summary |
{
"Type": "Textarea",
"Properties": {
"Label": "Enter your issue",
"LabelAsH1": true,
"QuestionId": "issueOne",
"CustomValidationMessage": "Custom validation message",
"Hint": "Hint text",
"MaxLength": "2000",
"Optional": true,
"DisplayCharacterCount": true
}
}
- 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