Hi All,
I have an app that has a regular button which is blue. I noticed that after it is pressed for the first time on my android phone the button turns white and stays white as if it is permanently pressed. Only way to gt it back to normal is to restart the app.
Solved! Go to Solution.
So replace the formula with:
UpdateContext({MyButton:true});Navigate(BrowseScreen1,Fade);UpdateContext({MyButton:false})
Then in the DisplayMode of the Button:
If(MyButton,DisplayMode.Disabled,DisplayMode.Edit)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Remove the Button and Insert a New button.
Also check the formula on the Pressed Property of the button.
Else
You can work around it by setting the variable:
UpdateContext({MyButton:true});YourOnSelectFormula;UpdateContext({MyButton:false})
Then in the DisplayMode of the Button:
If(MyButton,DisplayMode.Disabled,DisplayMode.Edit)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
New button didn't work, pressed color = Button2.Fill
Going to try the workaround, where does the UpdateContext({MyButton:true}); variable go?
Button OnSelect:
UpdateContext({MyButton:false})
Button DisplayMode:
If(MyButton,DisplayMode.Disabled,DisplayMode.Edit)
It should be OnSelect of the Button. what formula do you already have on the formula, can you give it out?
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Sure, the OnSelect is
Navigate(BrowseScreen1,Fade)
So replace the formula with:
UpdateContext({MyButton:true});Navigate(BrowseScreen1,Fade);UpdateContext({MyButton:false})
Then in the DisplayMode of the Button:
If(MyButton,DisplayMode.Disabled,DisplayMode.Edit)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
That didn't work, I added another button to the screen and it is doing the same thing. I tried restarting the phone but that didn't work either. Screen shot below, the buttons are blue then turn white after you click on them. they stay white until the app is re-started.
Take a screen shot of the 2 formulas in your App:
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
They are not showing any errors, but the buttons still stay pressed in the app on the phone only. It works on the computer. I also checked my other apps on the phone and the buttons are working as they should, it is just this app. I might try to rebuild the entire screen. screenshots attached.
Just re-published and looks like its is working now....???
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
257 | |
247 | |
83 | |
36 | |
29 |
User | Count |
---|---|
297 | |
268 | |
117 | |
65 | |
45 |