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 / Edit form - How can i ...
Power Apps
Unanswered

Edit form - How can i change the color of a field to yellow if contains text

(0) ShareShare
ReportReport
Posted on by

would like to highlight the field that need to be filled in, so highlight them in yellow, then when they type or select fromdropdown to change the field color to white...

 

so if blank, then yellow, otherwise white...

Tried: (no luck)

If(IsBlank(ThisItem.'Brief Description'), RGBA(242, 247, 215, 1), RGBA(255, 255, 255, 1))

 

Tried: (no luck)

If(Len(ThisItem.'Brief Description')=0, RGBA(242, 247, 215, 1), RGBA(255, 255, 255, 1))

 

 

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @vandam2, in the Fill Property of the Field,

     

    If(IsBlank(Self.Text),White,Yellow)

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Akser Profile Picture
    1,546 Moderator on at

    Did you add this to the 'Color' attribute of the dropdown? Is 'AllowEmptySelection' attribute set to 'true'?

  • Sanshubh Profile Picture
    512 on at

    Write this code on the Fill property of the

     

    Textbox : If(!IsBlank(Self.Text), RGBA(242, 247, 215, 1), RGBA(255, 255, 255, 1))

     

    Dropdown : If(CountA(Self.SelectedItems) > 0, RGBA(242, 247, 215, 1), RGBA(255, 255, 255, 1)) 

  • vandam2 Profile Picture
    on at

    that works great for both, thanks so much,

    would you happen to know what formula to use for people picker box?

     

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard