Announcements
I have gallery with checkbox list. One check box is All, other list categories.
I want this: if All checkbox selected, make all others disabled or view only.
If All checkbox is unselected, put all other in uncheck and available status.
Thanks
you could set a variable from the 'all' checkbox, and change the viewmode of the other checkboxes to that variable
if you want them all to be reset when the all check box is unchecked, you could set the 'Reset' value of all your check boxes to a variable, then set that to 'true' then false' in the 'OnUncheck' value of your all checkbox. when your all check box is unchecked, this will put all the others back to their default values
how do I change view mode of other check boxes?
can you, please provide code?
Update the visible property, for each checkbox. They are listed individually within the data card.
Example: checkbox1 = All and checkbox2 = certain hours
In the properties for checkbox1 locate the visible property. Insert the formula: If(checkbox2.checked = true, true, false) and in the properties for checkbox2 use the same formula but it's If(checkbox1.checked = true, true, false).
Please let me know if this helps.
I don't have each checkbox. I have gallery and see only one checkbox.
Can you provide a screen shot of your gallery set up?
I use this OnCheck
If(ThisItem.Value="All", Checkbox2_1.DisplayMode.Disabled);
but it's not working
So if you want to disable them when ticked, and reset them all when unticked. or you might want to flip the checked and unchecked code over depending on how you want the all checkbox to work (ticked disabled all, or unticked disables all):
checkbox_all:OnCheck:
Set(displayMode,DisplayMode.View);
OnUnCheck:
Set(displayMode,DisplayMode.Enabled)
Set(blnReset,true);Set(blnReset,false)
Checkbox1:
Displaymode: displayMode
Reset: blnReset
Checkbox2:
Displaymode: displayModeReset: blnReset
etc
it might make more sense to reset them all before you disable, but that depends on how exactly you need the code in the rest of the form to work I guess
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 352 Super User 2026 Season 2
M Bilal Khan 323
Mohsin Ali 226