cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular 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
Highlighted
Community Support
Community Support

Re: Resetting Button Pressed Status

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

6 REPLIES 6
Highlighted
Community Support
Community Support

Re: Resetting Button Pressed Status

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.
Highlighted
Regular Visitor

Re: Resetting Button Pressed Status

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

Highlighted
Community Support
Community Support

Re: Resetting Button Pressed Status

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.
Highlighted
Regular Visitor

Re: Resetting Button Pressed Status

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

Highlighted
Community Support
Community Support

Re: Resetting Button Pressed Status

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

Highlighted
Regular Visitor

Re: Resetting Button Pressed Status

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,313)