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 / How to change the butt...
Power Apps
Unanswered

How to change the button color OnStart event of the power apps

(0) ShareShare
ReportReport
Posted on by 121

Hello,

 

I have 3 buttons in my power app, 
When the first-time app is getting loaded at that time all three buttons are showing in black color.
I want to change and set the color of the buttons onStart event of the power apps.
I tried using the below code, but it didn't work.

 

Set(Matched_button_Fill, ColorValue("#0000FF"));
Set(UnMatched_Button_Fill,ColorValue("#FFFFFF"));
Set(All_Button_Fill,ColorValue("#FFFFFF"));


where - Matched_button_Fill, UnMatched_Button_Fill, All_Button_Fill in the above code, all these are variables I set on the Fill property of each button.

I am changing the color of the button OnStart event of the app, but it's still showing the button in the black.

 

Help is really appreciated!!!!

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I just did a test with the formulas in OnStart and it worked. Did you re-load the app in editor mode after you put the formulas in OnStart? If you didn't re-load you probably won't see any changes since OnStart requires the app to be reloaded in its entirety. If that still doesn't work are you able to put the formulas in the Visible property of the screen?  That worked for me as well. 

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

    Hi @praneshJ ,

     

    When you edit the app in PowerApps Studio, you need trigger the OnStart property by clicking 'Run OnStart' button in ellipsis of App.

    Snipaste_2020-07-15_11-06-20.png

    Sik

     

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 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard