Checkbox
Capture a True or False input from a user.
Add a checkbox {% endembed %}
Properties
Section titled “Properties”-
Checked
The value the user should see when the page loads for the first time. Choose from True, False or populate your checkbox with a bit/boolean value from your data.
-
Read-Only
Set to True if you want the control to display as read-only (value can’t be changed) on the page.
-
Visible
Set to False if you don’t want this control to render on the page and be visible to the user.
Assigning data to a Checkbox
Section titled “Assigning data to a Checkbox”Example:
To display a checked Checkbox when the value retrieved by a SQL query equals ‘True’ (or a similar value, like ‘Yes’):
- Use an appropriate Event, e.g. Load (page) or Click (button) to which a Decision and a SetValue action can be added.
- Add an If/Else Decision action to determine the value of the variable.
- If the value is ‘True’, add a SetValue action to assign the ‘True’ value and the checked state to the CheckBox’s Checked property.
Retrieving data from a Checkbox
Section titled “Retrieving data from a Checkbox”Properties that can contain data:
- Checked
Use an action to capture the values from the control. Go here for more details on how to collect data from controls.
Events
Section titled “Events”-
Change
An event that triggers when the checkbox is checked or unchecked.