Notifications
Announcements
I have a gallery with Items from SharePoint in PowerApps and would like the Confirm button to be Disabled until the User selects an Item or only 1(one) Item in the gallery. I have tried everything and still not working. Help!Button is labeled btnConditions and Gallery is galConditions.
Here is a way to disable the button until an item is selected. You will need to replace gallery with the name of your gallery and Title with the name of a text field in the gallery.
Property Formulas:
Gallery > Default > {}
Confirm > DisplayMode > If(IsBlank(Gallery.Selected.Title), DisplayMode.Disabled, DisplayMode.Edit)
Thanks. It works when I first apply the code however, after deselecting an option in the gallery, the Confirm button is still enabled instead of being disabled. Also, after pressing Confirm to Patch the record, when I come back to the screen the Confirm button is enabled without selecting any option in the gallery.
After the patch reset the gallery.
Patch(...);Reset('GalleryName')
Worked, 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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 765 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 272