SelectField
SelectField (select)
This field allows you to display a list.
{
"size": "s12 m12",
"type": "select",
"id": "1_7_IssueType",
"label": "I have a problem with",
"validate": [
"required"
],
"icon": "find_in_page",
"allow_add": false,
"search": false,
"search_error": "No data",
"placeholder": "Choose what you have a problem with",
"alphabetical_sorting": true,
"define_output_value": "label",
"options": [
{
"value": "",
"label": "",
"selected": "true",
"disabled": "disabled"
},
{
"label": "Computer",
"value": "Computer"
},
{
"label": "Smartphone",
"value": "Smartphone"
},
{
"label": "Car",
"value": "Car"
},
{
"label": "Other",
"value": "Other"
}
]
}
allow_add
Enabling this parameter will add new things to the list. If your list is not closed, you can let new things be added to it.
search
It allows you to search in the list, if it is enabled together with "allow_add" you will be able to search, or if you do not find an interesting option - add your own.
search_error
alphabetical_sorting
define_output_value
options
value
label
checked