What I’m trying to achieve
I’m building a form in WeWeb. I want to save all the input values easily, including checkboxes and radio buttons (boolean fields).
For classic input fields (text, number, etc.), everything works fine: the data is automatically linked to my form state.
But for checkbox and radio inputs, the value doesn’t appear in my form data (“settings > form > values”) when the user submits.
How things are set up
- I’m using a WeWeb form with classic input elements (text, number) and boolean elements (checkbox, radio).
- Text and number inputs automatically populate my form state.
- Checkbox and radio inputs do not populate the form values automatically.
Steps to reproduce the issue
- Create a form.
- Add a text input → works fine, value is saved in the form.
- Add a checkbox or radio button → value is not automatically saved.
What I’ve already tried
- Checked if I need to manually bind the boolean fields.
- Tried adding a “name” to the checkbox and radio fields.
- Tried modifying the form settings, but I didn’t find anything that links boolean fields automatically like for classic inputs.
- Looked into states, bindings, and actions, but still couldn’t solve it.
Where exactly I’m stuck
I don’t know:
- How to bind a checkbox or a radio button correctly to the form’s
values
. - How to make WeWeb capture the boolean value automatically when the user clicks on submit, like it does with other fields.