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

NameTypeDescription
idstringAssigns a name for the given field on the backend. This name can be used to refer this field in another field
labelstringAdds a label to the given field
isRequiredbooleanMakes a field mandatory
showInTablebooleanDisplays the field in a table after saving the entry
optionsarrayStores the options presented to the user to select
defaultValuestringSets a default value for the given field