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 / Changing button fill w...
Power Apps
Unanswered

Changing button fill when pressed on iPad

(0) ShareShare
ReportReport
Posted on by 2

I am having troubles with a button that I can't get to change color/fill when pressed on iPad. It works well when I preview the app in browser while using mouse but wont happen on iPad. Any ideas what I could do to make it work?

 

Thanks in advance.

Categories:
I have the same question (0)
  • rebeccas Profile Picture
    2,591 on at

    Use variables to do it

     

    Screen - OnVisible=UpdateContext({Button1:true, Button2:false})

     

    Then on Button 1

     * OnSelect =UpdateContext({Button1:true, Button2:false})

    * DisplayMode = If(Button1,Disabled,Edit)

     

    On Button 2

    * OnSelect = UpdateContext({Button1:false, Button2:true})

    * DisplayMode = If(Button2,Disabled,Edit)

     

    You can set the Disabled Fill and Color for each of the buttons to whatever you want and you can do this with as many  buttons you want, I just did this example for two.

  • MayaD Profile Picture
    2 on at

    Thanks for your response, I'll try it.

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

    Hi @MayaD,

    How do you change the Fill color of the Button within your app?

    Have you solved your problem?

    I have made a test on my side, please take a try with the following workaround:

    Set the OnSelect property of the Button control to following:

    Set(IsClicked,!IsClicked)

    Set the Fill property of the Button control to following:

    If(IsClicked,RGBA( 255, 20, 147, 1 ),RGBA(56, 96, 178, 1))

    Please take a try with above solution, check if your issue is solved.

     

    Best regards,

    Kris

  • rebeccas Profile Picture
    2,591 on at

    That is one option but it (in my opinion) works better the way I put above where instead having to put the if statement on your fill you just change the button properties off the variable. 

     

    I have done both and just find this way to be easier and cleaner...but everybody has their own style and way of doing things. I like this option because I prefer being able to click on the colors so I can see what I like better instead of having to type them out in the if statement. But is basically has the same outcome either way. 

     

    Rebecca  🙂 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard