Checkbox

This field is used to allow the user to select options out of a given list. The user can configure and provide as many options as they prefer, and it will enable multiple select options

{
"type": "checkbox",
"id": "checkboxExample",
"label": "Checkbox",
"showInTable": true,
"isRequired": true,
"options": ["General", "Salesperson", "Friend/Relative", "Other"]
}

The example above creates a checkbox of the 4 options above where the user can select multiple options and the field is required.

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