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 / Visible Property to fa...
Power Apps
Answered

Visible Property to false / DisplayMode to Disabled

(0) ShareShare
ReportReport
Posted on by 20

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.

WellCheck.PNG

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    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)

     

  • GideonTA Profile Picture
    20 on at

    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.

  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    After the patch reset the gallery.

     

    Patch(...);Reset('GalleryName')

  • GideonTA Profile Picture
    20 on at

    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.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard