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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to check if all it...
Power Apps
Unanswered

How to check if all items in a gallery have been selected

(0) ShareShare
ReportReport
Posted on by

I have a formula that works. It will activate a button if one radio button in my gallery is selected, but I can't figure how to disable it until all gallery item's radio buttons 

 

This works, but only until the first button is selected. How do I make it change to edit mode only after all items in the gallery are selected?

 

 

If(IsBlank(UnregisterReasons.Selected), DisplayMode.Disabled, DisplayMode.Edit)

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    @Becca51178 

    You could utilise CountRows(), like this:

     

     

    If(
     CountRows(Filter(Gallery1.AllItems,Radio1.Selected.Value=1)) = CountRows(Gallery1.AllItems),
     DisplayMode.Edit, 
     DisplayMode.Disabled
    )

     

    Swap:

    -  Gallery1 with the name of your gallery, and

    - the '1' in Radio2.Selected.Value=1 with item name of your Radio button

     

    EDIT: Also swap Radio1 for the name of your radio button 🙂 

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Becca51178 

     

    Can you try to use the below formula where it works in the case where there could be different values selected in different rows for the Radio button?

    If(
    CountRows(Filter(GalleryName.AllItems,!IsBlank(RadioControlName.Selected.Value))) = CountRows(GalleryName.AllItems),
    DisplayMode.Edit,
    DisplayMode.Disabled
    )

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard