How to add a Toggle input to a form
Toggles, also known as on/off switches, are used when a single on/off, or true/false type of response is needed. You could use a single checkbox with a blank option, but using a toggle is a better option when a single checkbox is needed, such as for Yes/No questions. Toggles can be used in data sets, data maps, dynamic tables and static tables.
- From the Input menu in the Form Designer, click Toggle.
- The toggle is added to your form.
- Click it to view the Toggle input slider.
- Select the column span size for the toggle input.
- Expand Input Options.
- Enter a value for when the toggle is off and a value for when the toggle is on. Be mindful when entering the off and on values because they may be necessary for reporting to the backend system. For example, when the toggle for "Does Customer Approve Work Performed?" is on, "Yes" may not be a database value, but "True" is.
- Mark options as a default for the toggle.
Toggle on Use Default Value, then select the options from the list you want to default when using the app. Defaults can be changed during form entry.
Mark Default Value to default the toggle's value on.
Mark Default Value from Another Field to default a value from another field. Then from the Select Form Field list, select the field you want to use to default from.
- Expand Style to specify the style settings for the toggle input. See Applying Styles to an Input for more information.
- Click the Validations tab to create a validation for the toggle. See Creating Field Level Validations for more information. When using validations, "Value" is selected as the Value Type and the applicable values that are set up are displayed.
- Click the Field Condition tab to create a condition for the toggle. When using field conditions, "Value" is selected as the Value Type and the applicable values that are set up are displayed.
- Save your changes.
- Click
(Preview) to view how the toggle input will look in the app.