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 / Dropdown Fill Change W...
Power Apps
Answered

Dropdown Fill Change When Value is Changed from Current Record

(0) ShareShare
ReportReport
Posted on by 300

Hi. How do I change the fill of a dropdown when the value is changed in Edit Mode? I am able to do it with Text and Date fields but not with dropdowns. Thanks.

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @jaanihsm 

     

    Try this formula in dropdown Fill Property:

     

    If(
    Dropdown1.Selected.Value = "1", // Change this condition based on your dropdown values
    Color.Red,
    Dropdown1.Selected.Value = "2",
    Color.Yellow,
    Color.Green
    )

    You can use "Switch" function instead of "If"

     

    Switch(
    Dropdown1.Selected.Value,
    "1", Color.Red,
    "2", Color.Yellow,
    Color.Green
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • jaanihsm Profile Picture
    300 on at

    Thanks for the response @Rajkumar_404 ! I'll try this.

     

    Is there a way to simplify though? White fill if the value has not been changed from record, yellow if value is changed to whichever (regardless of dropdown value) as long as value is not the same in the SP list, they want to change it in Edit Mode. Thank you for your help!

  • jaanihsm Profile Picture
    300 on at

    HI @Rajkumar_404. Is it possible to have something similar to this? This is what I have for texts and dates fields. Thank you!

     

    If(Parent.Default <> Parent.Update, Color.Yellow, RGBA(255,255,255,1))

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this

     

    If( 
    Dropdown1.Selected.Value <> ThisItem.YourColumnName,
    Color.Yellow,
    Color.White
     

     

  • jaanihsm Profile Picture
    300 on at

    I get the <> in error. And the message is:

     

    This formula uses scope which is not presently supported for evaluation.

     

  • jaanihsm Profile Picture
    300 on at

    Oh this worked! I just had to switch some codes:

     

    If(ThisItem.'ColumnName'.Value <> DropdownName.Selected.Value, Color.Yellow, Color.White)

     

    Thank you @Rajkumar_404 ! 😊

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 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard