How to hide a button when all checkbox are unchecked?

I have a repeating group in my page. When user clicks on any 1 checkbox, i show them 2 button.

Now when user unchecks ALL the checkbox, than i want to hide this button. How to do 2nd part? When user unchecks even 1 button, the button disappear.

I have solved this issue. I have used custom states to solve this problem

Custom states are a great way to handle this.

If the user unchecks checkbox 1, set a custom state checked1 to “no”.
If the user checks checkbox 1, set a custom state checked1 to “yes”.

If the user unchecks checkbox 2, set a custom state checked2 to “no”.
If the user checks checkbox 2, set a custom state checked2 to “yes”.

If you want to hide the button if BOTH are unchecked, set a condition for the button: if checked1 is “no” and checked2 is “no”, set the button’s visibility to “no”.

If you want to hide the button if EITHER are unchecked, set a condition for the button: if checked1 is “no” OR checked2 is “no”, set the button’s visibility to “no”.

Hope this helps. And hope I got it right. It’s pretty early in the morning for me to be thinking about stuff like this.

This topic was automatically closed after 70 days. New replies are no longer allowed.