A field which allows for selecting either single or multiple choices
{
"name": "select_field",
"label": "Select Field",
"class": "select",
"value": "choice_two_value",
"choices": {
"choice_one_value": "Choice 1 Description",
"choice_two_value": "Choice 2 Description"
}
}
Select value
Here, our return value is a string, which matches the value of one of the choices provided when creating the field.
When adding a select field, you can allow users to select multiple values:
When enabled, the value will be an array whether the user chooses a single or multiple options
{
"name": "select_field",
"label": "Select Field",
"class": "select",
"value": [
"choice_one_value"
],
"choices": {
"choice_one_value": "Choice 1 Description",
"choice_two_value": "Choice 2 Description"
}
}
See more information on this field.