Hi,
I've got a problem with button status on a canvas app when running on mobile devices.
I've got a main screen with different buttons to navigate to other screeens and in those screens an icon to get back to main screen.
The problem is that sometimes (not always but very often), when coming back to the main screen, the buttons remain in "pressed" status (with pressed fill and color properties).
I have tried several approaches to solve this problem as forcing a displaymode.disable+displaymode.edit after pressing the button, but neither of them seem to work fine.
Thanks in advance
Solved! Go to Solution.
Hi @AntonioCarrion ,
That's really strange.
I've made a similar test but not met the same problem like your description.
I think that should be device's problem.
I suggest you open a ticket here:
https://powerapps.microsoft.com/en-us/support/pro/ticket/
As an alternative solution, you could set the button's pressed status same as not pressed to avoid this problem.
For example:
This button named Button1
set its PressedColor:
Button1.Color
set its PressedColor: PressedFill:
Button1.Fill
Best regards,
Hi @AntonioCarrion ,
Do you want to reset your pressed button?
Could you show me your settings in this button?
Usually, you just need to use reset function.
For example:
set the button's OnSelect:
action1;action2;action3;...;Reset(button1)
After you act the previous actions, reset that button. please replace with your button name.
If the button is also related to one collection or variable, you could clear this collection or variable after you act previous actions to reset that button.
Best regards,
Hi @v-yutliu-msft ,
I tried to use the Reset function, but it doesn't work for buttons so I got an error message when trying to use it because a button is not a supported type of control.
A very important point is that I have noticed that this problem happens only on Android devices, while on iPhone it works fine.
I've got usual settings as:
AutoDisableOnSelect=true
DisplayMode=edit
Visible=true
Hi @AntonioCarrion ,
No, please give me the settings about "pressed status": pressed fill and color properties.
Since you said: this problem happens only on Android devices, while on iPhone it works fine, this may be related about your device, not powerapps.
I suggest you clear your powerapps cache and update it to the latest version.
Check whether your device meet requirements:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/limits-and-config
Best regards,
Hi @v-yutliu-msft ,
Thanks a lot for your help.
We are using Android 9 on Samsung Galaxy devices with PowerApps versión 3.20052.16, and this problem happens on all devices we are have checked.
I have also tried to clear powerapps cache with the same error.
About "pressed" settings we are using:
(Please, note that we are using ";" intead of "," as we are using Spanish regional settings)
Kind regards,
Antonio
Hi @AntonioCarrion ,
That's really strange.
I've made a similar test but not met the same problem like your description.
I think that should be device's problem.
I suggest you open a ticket here:
https://powerapps.microsoft.com/en-us/support/pro/ticket/
As an alternative solution, you could set the button's pressed status same as not pressed to avoid this problem.
For example:
This button named Button1
set its PressedColor:
Button1.Color
set its PressedColor: PressedFill:
Button1.Fill
Best regards,
Thanks a lot @v-yutliu-msft ,
We have the same problem on our desktops now when using Edge, although the problem doesn´t happen as frequently as on mobile devices.
Finally, we have decided to use same colors for both pressed and normal status and I Will open a ticket with the problem as suggested.
Kind regards
Is the problem you are experiencing the same as this one that I reported here? Only happens on Android devices and only after you have used a text input box on the mobile app?
Yes, I think so. I will answer also to that person
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
190 | |
70 | |
50 | |
38 | |
28 |
User | Count |
---|---|
243 | |
114 | |
91 | |
91 | |
71 |