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 Apps
Answered

Hide a Button

(0) ShareShare
ReportReport
Posted on by 147

Hello

I have a screen with a gallery (called gallery3) linked to a SP list. I have on the right of the screen an Edit Form again tied to the same SP list. The item value of the form is set to gallery3.selected and this all works correctly. This is all guided by a text input field that filters gallery3 based on the text input. I have add a button to submit the form and all is working. My dilemma is when gallery3 is empty the submit button is still present, how do I go about hiding the button until a valid record is selected in gallery3?

I have tried using the following for the Visible property of the button but seem to be going round in circles
If(IsBlank(DataCardValue1),true,false)
My logic on the above is trying to match if the field in DataCardValue is empty then hide the button.

Can someone help me please

J

Categories:
I have the same question (0)
  • cloudw_davet Profile Picture
    7 on at

    I've done a trick in the past where I used a label with a semi-transparent fill and put that over the top of the button. Then made it appear if you don't want the button to be pressed. I also found that looked better because it greyed out the button as opposed to making it disappear.

    I'm not sure why your solution didn't work but suspect I might have come up with the above fix because of a similar problem.
    I hope that helps.

  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at

    Hi @JasonM73,

    Can you set the visibility of your button with such a condition?

    If(
    	IsBlank(Gallery3.Selected.ID),
    	false,
    	true
    )

     

  • JasonM73 Profile Picture
    147 on at

    @Akser Brilliant so simple and works a treat -thank you very much

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard