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 Platform Community / Forums / Power Apps / How to get a button to...
Power Apps
Answered

How to get a button to disappear after selecting.

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey all, I want to get a button to disappear after selecting it and have another one show up. What I have so far: 

 

The button that will appear I have the code set as If(ButtonVanish.Visible = true,false,true). In other words, the visibility of the two buttons is "flipped" was my idea, I am just having trouble getting the first button to disappear. 

 

Let me know if you have any input/suggestions! Thanks.

 

Categories:
  • JPiercefield Profile Picture
    85 on at

    Check this thread for a solution that should work for you.

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-apps-Show-Hide-Button/td-p/26240

     

     

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Anonymous 

     

    Yes, you can toggle between two buttons like this:

     

    Screen1 OnVisible

    Set(myToggle,true)

     

    Button1 Visible

    myToggle

    Button2 Visible

    !myToggle

     

    Button1 and Button2 for the OnSelect property, use this same formula below:

    Set(myToggle,!myToggle)

     

    See if it helps @Anonymous 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Will do. Thanks for the quick response!

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @poweractivate that works! For anyone that stumbles across this in the future, the !myToggle will be set to the button that will DISAPPEAR and myToggle on the ones that show up afterwards (what worked for me) 🙂

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Anonymous 

    If you don't like this, I wonder if doing this instead will invert the beginning state:

     

    Screen1 OnVisible

    Set(myToggle,false)

     

    other than that, if it works for you, glad that this way could solve it!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard