web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Change Font Color

(0) ShareShare
ReportReport
Posted on by 20

I am still learning and could use some help. 

 

I have a drop down that indicates if an item is Average, Below Average or Above Average.  I would like the display text (color) of the drop down to be red if the user selects Below Average.  I am using a sharepoint list and have already set my list to display these items in red, but I would also like to have those fields be red when someone edits/enters the powerapp form.  

Categories:
I have the same question (0)
  • SeanHenderson Profile Picture
    1,104 on at

    Select the color property of the dropdown and set it to 

    If(Dropdown1.Selected.Value = "Below Average", Red, Black)

    ---
    Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

  • KCM Profile Picture
    20 on at

    Could you give more detail on what dropdown1 would refer to?

     

    Ex. - Would it be DataCardValue20 or my item name -  choices([@mylistname].Rating)  

     

    I've tried the above with no success

  • SeanHenderson Profile Picture
    1,104 on at

    Yes, it would be whatever the dropdown name on your datacard is, not the datacard itself. Set the color property on that.

  • KCM Profile Picture
    20 on at

    I feel like an idiot but where do I find the dropdown name?  

  • SeanHenderson Profile Picture
    1,104 on at

    It's okay.

    The names of your controls on the tree view on the left:

    Annotation 2019-12-31 103017.png

  • KCM Profile Picture
    20 on at

    Screenshot attached - should I assume that the name would be DataCardValue20?  That was my initial assumption but is does not work.

  • SeanHenderson Profile Picture
    1,104 on at

    Can you take a screenshot of the dropdown on your app and what you want it to be?

    Sorry, rereading your question I think I get what you want now. You want something like this?

    Annotation 2019-12-31 104626.png

    If which case, set the HoverFill to White and use the formula on the HoverColor property.

  • v-siky-msft Profile Picture
    on at

    @KCM,

    Where is the drop down? inside the form or outside the form?

    Do you mean you want the display text of dropdown to be red when the selected item is Below Average or the form is in edit mode?

    If so, you need to modify the Color property as below:

     

    If(DataCardValue20.Selected.Value="Below Average" Or FormName.Mode=FormMode.Edit Or FormName.Mode=FormMode.New,Red,Black)

     

     Sik

  • Krishna92 Profile Picture
    Microsoft Employee on at

    @KCM 

     

    The steps that the user's are describing is as follows.

     

    In the form select the data card on which you want to implement the functionality.

    In the below image I wanted to implement the functionality on the drop down DROPPING I have selected the same.

     

    Drop down selectionDrop down selection

     

    Once you select this on the right hand side, you will see the name dropdown you have selected with options properties, advanced.

     

    advancedadvanced

     

    On the advanced tab, if you scroll down a little you will see the design part for the drop down and in that look for option Color

     

    colorcolor

     

    Here you can specify the condition shared by @v-siky-msft  and you will be able to see the options in different colors based on the condition.

     

    If this information helps you, please hit the like button and mark the solution as resolved, so that it will help other users in future.

  • KCM Profile Picture
    20 on at

    Let me explain better.

     

    When someone selects Below Average as a choice on the dropdown I want the words Below Average to display in red on the form (in view, edit and new).  

     

    I get an error message when I edit the color formula and the errors seem to have issue with the name of the field I am referencing (datacardvalue20).  This is the field.

     

    hulldatacard.PNG

     

    This is the form and words I want to appear in red when Below Average is chosen.

    red.PNG

     

    If I edit the Color I get an error that says DataCardValue20=This data type is unsupported for evaluation.

    error.PNG

     

     

     

     

     

     

     

     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard