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 / I have to hide button-...
Power Apps
Answered

I have to hide button-2 until user clicks button-1

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Team,

I am using a gallery, I have 2 buttons on my screen, Button_1 to store data in a collection and I am hiding this button based on the condition "If(CountRows(Filter(Gallery1.AllItems, IsBlank(TextInput1.Text))) > 0, false,true)".

I have to hide the other button_2 which patch the data until user clicks button_1.

Please help me.

 


Thanks !

Categories:
I have the same question (0)
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey!

    On OnSelect property of the button1 write:

     

    Set(varButton2Visible; true)

     

    Then, on OnVisible property of button2 write:

    varButton2Visible

     

     

    On AppStart write this:

    Set(varButton2Visible; false)

     

    Nad after using the button2, when you dont need it, write this:

     

    Set(varButton2Visible; true)

     

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

     

     

  • Prakash4691 Profile Picture
    1,332 on at

    @Anonymous 

     

    Try below,

     

    onvisible property of screen use : UpdateContext({Button2Visible: false});

     

    Button 1 onselect propery use : UpdateContext({Button2Visible: true});

     

    Button 2 visible property use : If(Button2Visible, true, false)

     

    If it answers your question, Kindly give kudo and mark it as solution.

     

     

    Regards,

    Prakash

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard