Skip to content

Select Component

Mike edited this page Jun 5, 2025 · 7 revisions

For updated documentation on the Select component, refer to the Form.io User Guide.

JSON Schema

The JSON Schema definition for this component is defined as follows.

{
"label": "Select",
"widget": "choicesjs",
"tableView": true,
"data": {
"values": [
{
"label": "A",
"value": "a"
},
{
"label": "B",
"value": "b"
},
{
"label": "C",
"value": "c"
}
]
},
"key": "select1",
"type": "select",
"input": true
}

Core Properties

This component uses the core properties defined within the Common Parameters section.

Specific Properties

PropertyDescriptionValueRequiredDefault
dataSrcDetermines which source strategy is used to populate the select drop down, the strategies are provided below.values, json, url, resource, or customtruevalues
data.valuesAn array of value objectsArray of value objects, where each item in the array has the following properties.
  • label - The label to show for this value
  • value - The value of this radio input
false[]
data.jsonA JSON object which is a manual entry of the items within the select dropdown list.Any valid JSONfalse
data.urlA url to retrieve data records from using a GET request.Any valid URLfalse
data.resourceA resource Form ID if a resource is to be used as the data source.A Valid Form IDfalse
data.customA string that will be executed JavaScript that will determine the values within this select list.Valid JavaScript which will set a values object which is the values used to populate the select list.false
valuePropertyThe property within each individual record to store as the value of this input. This is useful if each item within the data source list is a complex data object, but you only wish to store a property within that data object as the value of this input.Any object property. You can use "." to navigate within an object hierarchy.false
refreshOnA field within this form that will trigger a refresh of this field once the value of that field changes. This is useful if you have related select inputs that must be filtered based on the selection of another input. For example, the Make and Model dropdowns for automobile.Any form component api keyfalse
filterThe filter query to perform on the URL configured for this select list. Handlebar notation is allowed to determine a complex query that needs to be executed.Any GET request filter stringfalse
authenticateDetermines is the Form.io JWT token should be sent along with the GET request for an authenticated request.booleanfalsefalse
templateThe Handlebars template to show in the select text area.HTML Template. The following variables are provided.
  • item - The full submission object.
true
<span>{{ item.data }}</span>

Clone this wiki locally