Hi,
I just join this forums and create my first application, however I'm struggle with disabled button and how I can achieved with below scenario.
I have 2 screen
1. Lesson Menu (Screen1)
- 10 Button
- Deafult - Displaymode.edit for lesson1 and other are Disabled
2. Lesson Details (Screen2)
- Icon back to Screen1
Scenario,
When User click lesson1 button it will goes to screen2 to watch the lesson once finish when user click Icon back it will goes to Screen1 with conditions Lesson1 button become displaymode.disabled and lesson2 button become DisplayMode.Edit same also with Lesson2 button when click it will goes to another screen and when hit back button it will goes to Screen1 with conditions Lesson1button Displamode.disabled, Lesson2button Displamode.disabled but lesson3 button become displaymode.edit.
Appreciated if anyone can help.
Thank you.
Solved! Go to Solution.
Hi @Am4ree
Create a variable for your button state on app start.
Set(ButtonState,{
Button1:DisplayMode.Edit,
Button2:DisplayMode.Disabled,
Button3:DisplayMode.Disabled,
Button4:DisplayMode.Disabled
}
)
Create your buttons and set the displaymode as ButtonState.Button1, Button2 etc.
OnSelect, navigate to your next screen and then on the back button, update the state of the next button.
Set(ButtonState,{
Button1:DisplayMode.Edit,
Button2:DisplayMode.Edit,
Button3:DisplayMode.Disabled,
Button4:DisplayMode.Disabled
}
);
Navigate(Home)
Hope this is what you are looking for.
Cheers
Damien
Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts. Thanks
Hi @Am4ree
Create a variable for your button state on app start.
Set(ButtonState,{
Button1:DisplayMode.Edit,
Button2:DisplayMode.Disabled,
Button3:DisplayMode.Disabled,
Button4:DisplayMode.Disabled
}
)
Create your buttons and set the displaymode as ButtonState.Button1, Button2 etc.
OnSelect, navigate to your next screen and then on the back button, update the state of the next button.
Set(ButtonState,{
Button1:DisplayMode.Edit,
Button2:DisplayMode.Edit,
Button3:DisplayMode.Disabled,
Button4:DisplayMode.Disabled
}
);
Navigate(Home)
Hope this is what you are looking for.
Cheers
Damien
Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts. Thanks
Hi Damien,
I have tried and its works.
Appreciated for your help 👍
Thanks.
Am4ree
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
53 | |
52 | |
38 | |
38 |
User | Count |
---|---|
284 | |
97 | |
89 | |
81 | |
77 |