✅Required Checkbox
Last updated
Last updated
A required checkbox is necessary feature in digital forms and agreements, requiring users to explicitly agree to specific terms before proceeding. Key uses include terms and conditions, privacy policy, risk acknowledgment, age verification, etc.
Firebase Authentication currently does not support this feature.
In this guide, you'll learn how to make a checkbox or any toggle mandatory.
To apply the stateful input:
To make the input mandatory:
To send the input value to the backend use:
Here's how you can implement it:
Create and design your stateful input by following the steps below:
Apply the [force-selected]
tag to the input group to make the input field mandatory.
Specify [input-value:0]
for the default state (False), and [input-value:1]
for the active state (True).
Ensure that you add the [action:submit]
attribute to the submit button. This will trigger the action to submit the data to your backend.
To bind:
On the left side of the screen, under "Elements," select the group element representing the checkbox. In this case, we're selecting the default state. Alternatively, you can choose the element directly from the image in the middle of the screen.
On the right-hand side, under "Form Data," connect the form input to the request variable. To achieve this, choose your data collection, the POST request, and finally, the variable named verified
.
Don't forget to set up the Form Response (On Success and On Error) by clicking on the element where the [action:submit]
tag is located.
Duplicate the files below to see how to set it up!
Your feedback is valuable to us. If you have any suggestions or questions, please don't hesitate to reach out to us in the community.