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 / Conditional formatting...
Power Apps
Answered

Conditional formatting based on Toggle value

(0) ShareShare
ReportReport
Posted on by 21

I am needing to change the fill color on a datacardvalue based on a Yes/No toggle.

 

In this example, if "System Requires Maintenance" is Yes, then I need the "Comments" field to be Red.

 

EvaAGarcia_0-1634662766006.png

I have tried:

EvaAGarcia_1-1634662919602.png

But, this makes the "Comments" field Red regardless of the toggle value.

 

Once I get through this hurtle, I also need it to do the following: when text is entered into the "Comments", I need it to go back to normal (White).

 

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Try this:

    If(Toggle1.Value,Red,White)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • EvaAGarcia Profile Picture
    21 on at

    Thank you very much; that worked. Do you have a solution or an idea what to do for changing back when text is entered?

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard