web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Resetting Button Press...
Power Apps
Answered

Resetting Button Pressed Status

(0) ShareShare
ReportReport
Posted on by 26

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

Categories:
I have the same question (0)
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    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,

  • AntonioCarrion Profile Picture
    26 on at

    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

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    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,

     

     

  • AntonioCarrion Profile Picture
    26 on at

    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

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    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,

  • AntonioCarrion Profile Picture
    26 on at

    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 Profile Picture
    30 on at

    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-getting-stuck-with-the/m-p/673267/highlight/false#M214994

  • AntonioCarrion Profile Picture
    26 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard