web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / gallery checkbox list ...
Power Apps
Unanswered

gallery checkbox list all option

(0) ShareShare
ReportReport
Posted on by 154

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

 

Categories:
  • johnxt Profile Picture
    on at

    you could set a variable from the 'all' checkbox, and change the viewmode of the other checkboxes to that variable

  • johnxt Profile Picture
    on at

    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

  • arkkgroup Profile Picture
    154 on at

    how do I change view mode of other check boxes?

  • arkkgroup Profile Picture
    154 on at

    can you, please provide code?

     

    Thanks

  • Bartelli Profile Picture
    75 on at

    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.

  • arkkgroup Profile Picture
    154 on at

    I don't have each checkbox. I have gallery and see only one checkbox.

  • Bartelli Profile Picture
    75 on at

    Can you provide a screen shot of your gallery set up?

  • arkkgroup Profile Picture
    154 on at

    I use this OnCheck

    If(ThisItem.Value="All", Checkbox2_1.DisplayMode.Disabled);

    but it's not working

  • johnxt Profile Picture
    on at

    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: displayMode
    Reset: blnReset

     

    etc

  • johnxt Profile Picture
    on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard