Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 5soN6HugXuisdQ9HHjNZ0g
Power Apps - Building Power Apps
Answered

Button Visible for other button and hide for another

Like (0) ShareShare
ReportReport
Posted on 16 Jan 2024 04:31:08 by 24

Hi, 

 

can anybody help, I have a little issue regarding visible button. Here for illustration. 

innawan_0-1705378977117.png

 I have 5 form, and button on each form. For default button in form 5 is hide (4 button). And i want when i click button 1 in form 1, the button 1 in form 5 is visible, the other button in form 5 (2,3,4) still hide, and so on for other scenario.

can you please help with this.

 

 

  • innawan Profile Picture
    24 on 16 Jan 2024 at 06:57:10
    Re: Button Visible for other button and hide for another

    Ok, Rimmon. Thanks, If so, I will use that method. Thanks

  • v-mengmli-msft Profile Picture
    on 16 Jan 2024 at 06:55:13
    Re: Button Visible for other button and hide for another

    I'm afraid there's no better way to skip setting variables at the moment. Although the above method will set some variables, it is simple and stable.

  • innawan Profile Picture
    24 on 16 Jan 2024 at 06:48:22
    Re: Button Visible for other button and hide for another

    Hi @v-mengmli-msft

    When a button in form1 is clicked, will the buttons in Form5-1, Form5-2, etc. are displayed at the same time?

    --> No Rimmon, above ilustration in for one process. My objective is when we open form 5 from form 1, and then close form 5 , it will navigate back to form 1.  And so on. 

  • v-mengmli-msft Profile Picture
    on 16 Jan 2024 at 06:37:32
    Re: Button Visible for other button and hide for another

    Hi @innawan ,

     

    I am assuming that there are Form5-1, Form5-2, Form5-3 and Form5-4.

    When a button in form1 is clicked, will the buttons in Form5-1, Form5-2, etc. are displayed at the same time?

  • innawan Profile Picture
    24 on 16 Jan 2024 at 06:29:36
    Re: Button Visible for other button and hide for another

    Hi @v-mengmli-msft 

    Thank you for the reply. 

    Unfortunatelly, I have 3 form like form 5 in my apps.  It's means there will be 12 global variable to set.

    In your opinion, is there any simple way to achive that.

  • innawan Profile Picture
    24 on 16 Jan 2024 at 06:19:19
    Re: Button Visible for other button and hide for another

    Hi Rimmon, 

    Thank you for the reply. 

    Unfortunatelly, I have 3 form like form 5 in my apps.  It's means there will be 12 global variable to set.

    In your opinion, is there any simple way to achive that.

  • Verified answer
    v-mengmli-msft Profile Picture
    on 16 Jan 2024 at 05:23:15
    Re: Button Visible for other button and hide for another

    Hi @innawan ,

     

    I recommend you set variables to control visibility of buttons in Form5, such as var1, var2, var3...

    Please try this:

    OnSelect of button in Form1:

    Set(var1,true)

    Visible of button1 in Form5:

    var1

    Same steps for other buttons.

    OnVisible of Screen or OnStart of App:

    Set(var1,false);
    Set(var2,false);
    Set(var3,false);
    Set(var4,false);

     

     

    Best regards,

    Rimmon

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 37 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 34

Overall leaderboard