Toggle
A toggle button contains two opposing, binary states based on Boolean logic. On/Off is the default for the button, because this is the most common use. To use the new version, refer to Toggle.
Toggle Settings
When you use a check box widget, in addition to providing values for the default fields for a widget, you must define the following settings.
Setting | Description |
---|---|
Source | The data source can be based on which queries have been added in the Page Data section. It is also possible to manually insert the data. |
Required | Specify if an input must be sent to the query. |
Submit on Change | If selected, changing the value of the input submits the query to which this input is assigned. |
True Label | There are two states on a toggle button. The True Label setting refers to the label of the active state. |
False Label | There are two states on a toggle button. The False Label setting refers to the label of the inactive state. |
Width | The width of the toggle button. |
Possible Uses
Toggle buttons are generally used for on/off actions. For example, if a setting or feature is active/inactive, this can be controlled with a toggle button.
This example describes the device on/off switching using a Toggle button.
Note: Without an actual device or a simulator, the real action result cannot be seen.
- In the page designer, add a toggle widget and two input widgets.
- In Page Data section, add a function to the page, such as IQAW Set Immobilizer State.
- Drag the function parameters to connect to the input widgets and the toggle widget. Note that function (command) itself (IQAW Set Immobilizer State) should be connected to the toggle widget.