cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AntonioCarrion
Frequent Visitor

Resetting Button Pressed Status

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

1 ACCEPTED SOLUTION

Accepted Solutions

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
v-yutliu-msft
Community Support
Community Support

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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,

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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:

 

  • PressedBorderColor=RGBA(255;255;255;1)
  • PressedColor=BConfirmar.Fill
  • PressedFill=BConfirmar.Color
  • BConfirmar.Fill=RGBA(253; 183; 0; 1)
  • BConfirmar.Color=RGBA(44; 44; 44; 1)

(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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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

AtomicPete
Frequent Visitor

Hi @AntonioCarrion 

 

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?

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Bug-Button-controls-on-Android-devices-getti...

Yes, I think so. I will answer also to that person

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,338)