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.
Solved! Go to Solution.
Almost there, you are just missing a . between Selected and Value, it should be Selected.Value
And you will want to put it on the HoverColor property, as well as set the HoverFill to White.
---
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."
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."
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
Yes, it would be whatever the dropdown name on your datacard is, not the datacard itself. Set the color property on that.
I feel like an idiot but where do I find the dropdown name?
It's okay.
The names of your controls on the tree view on the left:
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?
If which case, set the HoverFill to White and use the formula on the HoverColor property.
@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
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 selection
Once you select this on the right hand side, you will see the name dropdown you have selected with options properties, advanced.
advanced
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
color
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.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
187 | |
81 | |
50 | |
38 |
User | Count |
---|---|
303 | |
249 | |
124 | |
73 | |
55 |