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.
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
253 | |
109 | |
92 | |
48 | |
37 |