Radio
This field is used to select a single option from displayed options.
{"type": "radio","id": "purpose","label": "Purpose","showInTable": true,"isRequired": true,"options": ["General", "Salesperson", "Friend/Relative", "Other"]}
In the above example, the user is shown 4 options from where they can choose one. This field can be easily referred in another field using visibleIf condition.
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 |