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

Disable Button

(0) ShareShare
ReportReport
Posted on by 17

Hello,

 

I have below scenario but struggle to make it happen.

 

I have list of buttons on Screen 1 as shown below. on property I have set Display mode : Disabled  on Button2, 3, 4, 5 except button 1 is View. So, when button1 (Lesson1) clicked it will goes to another screen2 (Pict 2 - Navigate).

in Screen 2, when I clicked back icon, it should be back to Screen 1 and enabled the Button 2 which is I had set disabled in Display mode. How I can accomplish this scenario?

 

Thank you.

2021-12-21 15_09_12-Window.png

2021-12-21 15_17_03-Window.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You can create a variable called for example varEnable, which can be set on App OnStart or on the OnVisible in Screen 1:
    Set(varEnable:1);  

    Now you can set the display modes depending on the varEnable, for example for button 1:

    DisplayMode -  If(varEnable=1;DisplayMode.Edit;Disabled)


    And when button 1 is selected set the varEnable to value 2, and the button 2 display mode should be like this:

    If(varEnable=2;DisplayMode.Edit;Disabled)

    You can do sequentially for all the buttons. Another option is on Screen2, when clicking in the button/icon to navigate back, you can change on click of the button the varEnable value.

     

    If my solution helped solve your problem click Accept Solution.

  • CU22070446-0 Profile Picture
    17 on at

    Thanks @Anonymous ,

     

    Its works. appreciated !!

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard