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.
Solved! Go to Solution.
After the patch reset the gallery.
Patch(...);Reset('GalleryName')
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
208 | |
47 | |
43 | |
41 | |
36 |
User | Count |
---|---|
290 | |
84 | |
81 | |
79 | |
77 |