CMS: Adding and Setting Up a Checkbox

4 min read
Before you begin:
To use this element, you must add CMS to your site and set up a collection to store the user inputs.
There are 2 main uses for checkboxes:
  • A single checkbox, which allows visitors to mark their response as either "yes" or "no". A common use of this type of checkbox is asking visitors if they agree to your terms of use. If they select the checkbox, that's considered as a "yes".
  • A multi checkbox, which allows you to provide a list of options to your visitors and lets them select one or more option (as opposed to radio buttons which only allow visitors to select a single option).
Add a checkbox or multi checkbox to your site to collect input from your site visitors. Connect the checkbox to a collection to store your visitors' selections.
New datasets experience:
In Wix Studio, we've moved datasets to the Inspector panel on the right to make them easier for you to use. Learn more about the new datasets experience in Wix Studio

To add and set up a checkbox element:

  1. Go to the Add panel:
    • Wix Editor: Click Add Elements  on the left side of the Editor.
    • Editor X: Click Add Elements  at the top of Editor X.
  2. Click Input.
  3. Click and drag the checkbox of your choice.
  4. Click the checkbox in the Editor.
  5. Click Settings to edit the checkbox element settings:
6.  (For multi checkboxes only) Click Manage Choices to set up the checkboxes:

7.  Click the Connect to Data  (orin Editor X).
8.  Click Connect a dataset to choose a dataset from the drop-down list.
9.  Click Checked state connects to to:
  • Choose an existing field in your collection. 
  • Click Add a new collection field to create a new field in your collection. 
    • Enter a field name. 
Make sure you have a submit button on your page so visitors can submit their selection.

Did this help?