Properties
A radio button component, that lets the user select a given value from a list.
Name
Description
Default
Mandatory
type
RadioButton
N/A
id
Unique ID within the flow
N/A
config.required
Must have a value when leaving the step. true/false
false
config.readonly
Open to edit by enduser. true/false
false
config.always_include
Always include in pipe requests
false
config.default_value
This value is selected per default
config.allow_empty
Do we allow no value?
false
config.empty_value
Represents empty value
""
config.options
Select options (list of objects)
N/A
config.options.title
An option title
N/A
config.options.value
An option value
N/A
{
"id": "identificationMethod",
"type": "RadioButton",
"config": {
"required": true,
"default_value": "{{ flow.preferred_auth }}",
"options": [
{
"title": "Username/Password",
"value": "uidpwd"
},
{
"title": "BankID",
"value": "bankid"
}
]
}
}{
"id": "chooseRole",
"type": "RadioButton",
"ui": {
"ui:size": {
"md": 6
}
},
"config": {
"required": false,
"options": [
{
"title": "Human Resources",
"value": "hr"
},
{
"title": "Sale",
"value": "sale"
},
{
"title": "IT",
"value": "it"
},
{
"title": "Engineering",
"value": "engineering"
}
]
}
}