Multiselect
This field is used to select multiple options from a given dropdown
{"type": "multiselect","id": "category","label": "Product Category","showInTable": true,"isRequired": true,"defaultValue": "Option 1","options": ["Option 1", "Option 2", "Option 3", "Option 4"]}
The above example is a multiselect field where the user has 4 options to select from. It also has attributes like defaultValue where an option is selected as default which in this case is Option 1.
Field Attributes
Name | Type | Description |
---|---|---|
id | string | Assigns a name for the given field on the backend. This name can be used to refer this field in another field |
label | string | Adds a label to the given field |
isRequired | boolean | Makes a field mandatory |
showInTable | boolean | Displays the field in a table after saving the entry |
options | array | Stores the options presented to the user to select |
defaultValue | string | Sets a default value for the given field |