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 / PowerApps Button Color...
Power Apps
Answered

PowerApps Button Color Change on Form Load

(0) ShareShare
ReportReport
Posted on by 80

I've seen posts similar, but we have 1 screen with 3 forms on the one screen.  Patch wasn't working, so this ensures all data is posted.  

 

Form Name / Button Name:

 

Main / Main

AddInfo / Additional Information

Status / Status

 

When a form is loaded, I want the button that corresponds to the title to display a different color.  For example, if user clicks button "Main" - I want the Main button to change color, and keep that color, until another button is clicked.  This will help users know which form they are viewing/editing.  

 

The buttons are currently configured with 

 

 

OnSelect: Set(ShowMainForm,true);Set(ShowAddInfoForm,false);Set(ShowStatusForm,false)

 

 

 

TIA

 

2020-06-08_14-42-16.jpg
Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You change the fill and/or color property of the button if the corresponding form is showing.  

    If(ShowMainForm, Green, Red)
    If(ShowAddInfoForm, Green, Red);
    If(ShowStatusForm, Green, Red);

     Put the formula on corresponding button's fill and/or color property. You can change colors however you like. 

  • scnative Profile Picture
    80 on at

    Hi @Anonymous ,

     

    If I add to button Color or Fill, I get errors expecting operator + & *  at the semi-colons and commas

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry for the miscommunication. You should not add all three formulas to one button. One formula corresponds to one button.

    Main Button Fill/Color: If(ShowMainForm, Green, Red)
    Additonal Button Fill/Color: If(ShowAddInfoForm, Green, Red);
    Status Button Fill/Color: If(ShowStatusForm, Green, Red);
  • scnative Profile Picture
    80 on at

    @Anonymous - Thank you.  That works.  How do I reference specific colors, like:

     

    BLUE RGB:  

    0   153   204

     

    #0099CC

  • Ajithnair621 Profile Picture
    83 on at

    Button_Name.Color= RGBA(0, 153, 204, 1);

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard