I’m building this form, and I’d like to be able to check if every field is empty so that the “save” button is unclickable if so. Among the fields, as you can see below, there are some checkboxes
I don’t know if it’s the best, but the way I’m doing this is by using a hidden variable of type “yes/no” that becomes “yes” if every field is empty. However, my question is, how do I do that for the checkboxes? I’m unable to add an “and” (I need to check other fields) to the dynamic expression by using “:each item is empty”, so it must be something else.
I suggest you change a little bit the structures of your checkbox section:
List checkbox labels in an option set
Use a repeating group to call all options from this option set. Put a group row with an icon checkbox empty and the text current option display
Create a custom state “tipo de contato” of type list of [the option set] you created in step 1. When current cell of the repeating group is in the custom state then change the icon of the checkbox empty to checkbox checked.
Create the workflow when a checkbox is clicked, set state of tipo de contato add current cell tipo de contato (parent’s group if the workflow is on the checkbox not directly on the cell) if custom state tipo de contato doesn’t contain this tipo de contato
Create another one that remove the tipo de contato from the custom state
To check if no checkboxes are checked, check the condition custom state tipo de contato count is 0
When saving the data just retrieve all the tipo de contato in the custom state