Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Change the color based on the button output

(0) ShareShare
ReportReport
Posted on by

Hi Team,

 

I am have created a button where I have 2 slider (Price and Quantity) calculation mutlipled. eg 

Slider1.Value * Slider2.Value to get the out in the button. Now , How can I change the color of the button if the value increases $1000 then Red, Green
 
Sriku_0-1709287917222.png

 

 

 

  • Verified answer
    YogeshMurugn Profile Picture
    YogeshMurugn 443 on at
    Re: Change the color based on the button output

    Hi @Sriku 

    If(Slider1.Value * Slider2.Value > 1000, Color.Red, Color.Green)

     

    Try this code in Button Fill property 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard