top of page

Advanced features

CMS

CMS: Setting Up the Radio Buttons Input Element


The Radio Buttons input element allows you to create interactive and user-friendly forms or filters on your website. You can use it to filter CMS content displayed in repeaters, galleries or tables so visitors can easily find what they are looking for. Or, use radio buttons to collect specific responses from visitors, such as survey answers or product preferences, helping you gather valuable data.



Using Radio Buttons to filter content on your live site


Connect your Radio Buttons input element to the same dataset as your repeater, gallery, or table and set it to filter content. Then choose the collection field you want to use as the filter and the condition for applying the filter. The values from the field will appear as radio buttons that your visitors can click to filter items displayed in the repeater, gallery or table.


Wix Editor


  1. Go to your editor.

  2. Add the Radio Buttons input element:

    1. Go to the page where you want visitors to use radio buttons to filter live site content.

    2. Click Add Elements

      CMS: Setting Up the Radio Buttons Input Element

      on the left side of the editor.

    3. Click Input.

    4. Click Radio Buttons.

    5. Click and drag the relevant Radio Buttons input element onto the page.


Screenshot of adding the Radio Buttons input element in the Wix Editor.

  1. Connect the Radio Buttons element to the CMS:

    1. Click the Connect to CMS icon

      CMS: Setting Up the Radio Buttons Input Element

      on the Radio Buttons element.

    2. Select Filter content in the panel on the right.

      Tip: If you haven't added a dataset to the page yet, add a dataset first (see the next step) then select Filter content.

    3. Click the Choose a dataset drop-down and select the same dataset that connects to the elements (e.g. repeater, gallery, table) that you want visitors to filter.

    4. Click the Filter content by drop-down and choose the collection field that visitors will use to filter the content. You can connect the following field types: Text, Number, Tags, Reference

      Tip: To add a new field to your collection and use it for filtering content, select + Add, enter the field name, select the field type, and click Add. You can add values to the field in your CMS collection later.

    5. Click the Condition drop-down and choose an operator that controls how the filter is applied (e.g. Is, Equals, Includes).

      Note: The conditions vary depending on the connected field type.


Screenshot of the connecting a Radio Buttons element to a dataset to filter content.

  1. Customize the Radio Buttons input element:

    • Click the Settings icon

      CMS: Setting Up the Radio Buttons Input Element

      to edit the field title that lets visitors know what the radio buttons do.

    • Click the Layout icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose a horizontal orientation or adjust the sizing, spacing, formatting, alignment or text direction.

    • Click the Design icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose a preset design and customize it further.

    • Click the Animation icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose and customize an animation effect.


Screenshot of adjusting the Radio Buttons layout settings.

  1. Click Preview to test your Radio Buttons element.

  2. Click Publish if you are ready to make the changes go live.


Studio Editor


  1. Go to your editor.

  2. Add the Radio Buttons input element:

    1. Go to the page where you want visitors to use radio buttons to filter live site content.

    2. Click Add Elements

      CMS: Setting Up the Radio Buttons Input Element

      on the left side of the editor.

    3. Click Input.

    4. Click Radio Buttons.

    5. Click and drag the relevant Radio Buttons input element onto the page.


Screenshot of adding the Radio Buttons input element in the Studio Editor.

  1. Connect the Radio Buttons element to the CMS:

    1. Click the Connect to CMS icon

      CMS: Setting Up the Radio Buttons Input Element

      on the Radio Buttons element.

    2. Select Filter content in the panel on the right.

      Tip: If you haven't added a dataset to the page yet, add a dataset first (see the next step) then select Filter content.

    3. Click the Choose a dataset drop-down and select the same dataset that connects to the elements (e.g. repeater, gallery, table) that you want visitors to filter.

    4. Click the Filter content by drop-down and choose the collection field that visitors will use to filter the content. You can connect the following field types: Text, Number, Tags, Reference

      Tip: To add a new field to your collection and use it for filtering content, select + Add, enter the field name, select the field type, and click Add. You can add values to the field in your CMS collection later.

    5. Click the Condition drop-down and choose an operator that controls how the filter is applied (e.g. Is, Equals, Includes).

      Note: The conditions vary depending on the connected field type.


Screenshot of the connecting a Radio Buttons element to a dataset to filter content.

  1. Customize the Radio Buttons input element:

    • Click the Settings icon

      CMS: Setting Up the Radio Buttons Input Element

      to edit the field title that lets visitors know what the radio buttons do.

    • Click the Layout icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose a horizontal orientation or adjust the sizing, spacing, formatting, alignment or text direction.

    • Click the Design icon

      CMS: Setting Up the Radio Buttons Input Element

      in the Inspector panel on the right to edit the design.


Screenshot of adjusting the Radio Buttons settings.

  1. Click the Preview icon

    CMS: Setting Up the Radio Buttons Input Element

    at the top right to test your Radio Buttons element.

  2. Click Publish if you are ready to make the changes go live.



Using Radio Buttons to collect responses from site visitors


Set the Radio Buttons input element to collect content. Then connect it to a dataset that binds to a collection where you will store the responses. Set up the choices that visitors can select from in the radio buttons. When visitors click your submit button, their responses are saved to the connected collection field.


Wix Editor


  1. Go to your editor.

  2. Add the Radio Buttons input element:

    1. Go to the page where you want visitors to click radio buttons to submit responses.

    2. Click Add Elements

      CMS: Setting Up the Radio Buttons Input Element

      on the left side of the editor.

    3. Click Input.

    4. Click Radio Buttons.

    5. Click and drag the relevant Radio Buttons input element onto the page.


Screenshot of adding the Radio Buttons input element in the Wix Editor.

  1. Connect the Radio Buttons element to the CMS collection where you will store the submissions:

    1. Click the Connect to CMS icon

      CMS: Setting Up the Radio Buttons Input Element

      on the Radio Buttons element.

    2. Select Collect content in the panel on the right.

      Tip: If you haven't added a dataset to the page yet, add a dataset first (see the next step) then select Collect content.

    3. Click the Choose a dataset drop-down and select a dataset that connects to the collection where you will store the submissions.

    4. Click the Value connects to drop-down and choose the field that will store the submissions. You can connect the following field types: Text, Number, URL, Date, Date and Time

      Tip: To add a new field for storing submissions, select + Add, then enter the field name and click Add.

    5. Set the dataset mode and collection permissions:

      1. Click Dataset Settings in the panel on the right.

      2. (Optional) Click the permission type next to Permissions to determine who can view, add, update, or delete collection content.

      3. Click the Dataset mode drop-down and select the relevant option:

        • Write: Connected input elements can add new items to the collection, but cannot edit existing items.

        • Read & Write: Connected elements can update existing items in the collection. If you connect a 'New' button, visitors can use it to update existing items and add new items to your collection.

      4. Click Back to Radio Buttons at the top of the Dataset Settings panel.


Screenshot of the dataset settings for a connected Radio Buttons element set to collect content.

  1. Click Manage Choices and choose how you want to set up the choices that appear as radio buttons:

    • Bulk add or remove choices: Click Add Multiple Choices and enter all the choices with each separated by a comma. Then click the Back icon

      CMS: Setting Up the Radio Buttons Input Element

      to return to the choices.

    • Add a choice: Click + Add a Choice, then use the options to customize it.

    • Edit a choice label: The label is the text visitors see next to the choice's radio button. Double-click the relevant choice to edit its label.

    • Edit a choice value: (Velo only) The value is the text that is saved to your collection field when visitors submit their response. Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Edit value.

    • Remove a choice: Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Delete.

    • Reorder choices: Click the Reorder icon

      CMS: Setting Up the Radio Buttons Input Element

      next to the relevant choice and drag it up or down in the list of choices.

    • Set a choice as selected by default: Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Set as default.

    • Duplicate a choice: Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Duplicate.


Screenshot of managing the choices that appear next to the radio buttons..

  1. Customize the settings layout and design of the Radio Buttons element:

    • Click the Settings icon

      CMS: Setting Up the Radio Buttons Input Element

      to edit the following:

      • Field title: Edit the title text that lets visitors know what the radio buttons do.

      • Default selection: Choose which radio button is selected by default:

        • None: None of the radio buttons are pre-selected.

        • Selected radio button: Choose which radio button choice appears pre-selected by default.

      • Field type: Select the Required checkbox to make it mandatory that at least one radio button is selected before the response can be submitted to your collection.

    • Click the Layout icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose a horizontal orientation or adjust the sizing, spacing, formatting, alignment or text direction.

    • Click the Design icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose a preset design and customize it further.

    • Click the Animation icon

      CMS: Setting Up the Radio Buttons Input Element

      to choose and customize an animation effect.


Screenshot of the Radio Buttons element's settings.

  1. Add a 'Submit' button for visitors to click to send their submissions.

  2. Click Preview to test your connections.

  3. Click Publish if you are ready to make the changes go live.


Studio Editor


  1. Go to your editor.

  2. Add the Radio Buttons input element:

    1. Go to the page where you want visitors to click radio buttons to submit responses.

    2. Click Add Elements

      CMS: Setting Up the Radio Buttons Input Element

      on the left side of the editor.

    3. Click Input.

    4. Click Radio Buttons.

    5. Click and drag the relevant Radio Buttons input element onto the page.


Screenshot of adding the Radio Buttons input element in the Studio Editor.

  1. Connect the Radio Buttons element to the CMS collection where you will store the submissions:

    1. Click the Connect to CMS icon

      CMS: Setting Up the Radio Buttons Input Element

      on the Radio Buttons element.

    2. Select Collect content in the panel on the right.

      Tip: If you haven't added a dataset to the page yet, add a dataset first (see the next step) then select Collect content.

    3. Click the Choose a dataset drop-down and select a dataset that connects to the collection where you will store the submissions.

    4. Click the Value connects to drop-down and choose the field that will store the submissions. You can connect the following field types: Text, Number, URL, Date, Date and Time

      Tip: To add a new field for storing submissions, select + Add, then enter the field name and click Add.

    5. Set the dataset mode and collection permissions:

      1. Click Dataset Settings in the panel on the right.

      2. (Optional) Click the permission type next to Permissions to determine who can view, add, update, or delete collection content.

      3. Click the Dataset mode drop-down and select the relevant option:

        • Write: Connected input elements can add new items to the collection, but cannot edit existing items.

        • Read & Write: Connected elements can update existing items in the collection. If you connect a 'New' button, visitors can use it to update existing items and add new items to your collection.

      4. Click Back to Radio Buttons element at the top of the Dataset Settings panel.


Screenshot of the dataset settings for a connected Radio Buttons element set to collect content.

  1. Click Manage Choices and choose how you want to set up the choices that appear as radio buttons:

    • Bulk add or remove choices: Click Add Multiple Choices and enter all the choices with each separated by a comma. Then click the Back icon

      CMS: Setting Up the Radio Buttons Input Element

      to return to the choices.

    • Add a choice: Click + Add a Choice, then use the options to customize it.

    • Edit a choice label: The label is the text visitors see next to the choice's radio button. Double-click the relevant choice to edit its label.

    • Edit a choice value: (Velo only) The value is the text that is saved to your collection field when visitors submit their response. Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Edit value.

    • Remove a choice: Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Delete.

    • Reorder choices: Click the Reorder icon

      CMS: Setting Up the Radio Buttons Input Element

      next to the relevant choice and drag it up or down in the list of choices.

    • Set a choice as selected by default: Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Set as default.

    • Duplicate a choice: Hover over the relevant choice, click the More Actions icon

      CMS: Setting Up the Radio Buttons Input Element

      and select Duplicate.


Screenshot of managing the choices that appear next to the radio buttons.

  1. Customize the settings layout and design of the Radio Buttons element:

    • Click the Settings icon

      CMS: Setting Up the Radio Buttons Input Element

      to edit the following:

      • Field title: Edit the title text that lets visitors know what the radio buttons do.

      • Default selection: Choose which radio button is selected by default:

        • None: None of the radio buttons are pre-selected.

        • Selected radio button: Choose which radio button choice appears pre-selected by default.

      • Field type: Select the Required checkbox to make it mandatory that at least one radio button is selected before the response can be submitted to your collection.

    • Click the Layout icon

      CMS: Setting Up the Radio Buttons Input Element

      to adjust the sizing, spacing, formatting, alignment or text direction.

    • Click the Design icon

      CMS: Setting Up the Radio Buttons Input Element

      in the Inspector panel on the right to edit the design.


Screenshot of the settings, layout, and design options for the Radio Button element.

  1. Add a 'Submit' button for visitors to click to send their submissions.

  2. Click the Preview icon

    CMS: Setting Up the Radio Buttons Input Element

    at the top right to test your connections.

  3. Click Publish if you are ready to make the changes go live.



FAQs


Click below for answers to common questions about Radio Buttons.


Yes. When set to collect content, you can set the default state of a radio button to be pre-selected by default. Click Manage Choices, then hover over the relevant choice, click the More Actions icon

CMS: Setting Up the Radio Buttons Input Element

and select Set as default.

Currently this applies to radio buttons set to collect content only. When set to filter content, there is no option to have a radio button selected by default.


Yes. Visitors can only select one button in each Radio Buttons element to submit their response. However, you can add as many Radio Buttons input elements as your form needs. Set up each element separately and connect them to the same dataset that connects to your collection where you store the submissions.


You can connect the following collection field types to the Radio Buttons input element, depending on how you use the radio buttons:

  • Filter content: Text, Number, Tags, Reference

  • Collect content: Text, Number, URL, Date, Date and Time

Learn more about the connection options for each element.


When set to Collect content, you need to add the choices manually in the Manage Choices panel. Currently, it is not possible to connect the list of choices to your CMS collection.

When set to Filter content, you can connect the radio buttons to your collection fields to let visitors filter a Text, Number, Tags, or Reference field value.


Need A Professional Website?
Contact Us 
Today!

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

wix experts
Graphic2Traffic web design
©
bottom of page