โœ…Required Checkbox

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.

๐Ÿ‘‰ The tags

To apply the stateful input:

[input-state-set:{identifier-name}] // add the input functionality
[state:default] // sets the default state
[state:active] // sets the active state

To make the input mandatory:

[forced-selected]

To send the input value to the backend use:

[input-value:0]
[input-value:1]

๐Ÿท๏ธ How to add the tag

Here's how you can implement it:

  1. Create and design your stateful input by following the steps below:

๐ŸฉทpageStateful input
  1. Apply the [force-selected] tag to the input group to make the input field mandatory.

  1. Specify [input-value:0] for the default state (False), and [input-value:1] for the active state (True).

  1. Ensure that you add the [action:submit] attribute to the submit button. This will trigger the action to submit the data to your backend.

๐Ÿ”Œ Binding with the API

To bind:

  1. 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.

  2. 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.

  1. 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.

๐Ÿ’พ Example File

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.

Last updated