Announcements
Hi,
I want to change the color of the item when it is selected on the dropdown.
If it can be done with simple drop down, please suggest. If it has to be done by gallery please suggest all the steps in details.
Attachment is to provide exact scenario. 'Ontrack': Green . 'Off-Track' has to be made Red in color.
Regards,
Nandan
@WarrenBelz @GarethPrisk
@Anonymous Use this code in the Fill property of your dropdown
Switch( Dropdown1.Selected.Value, "On-Track", Green, "Off-Track", Red )
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Thank You @PowerExplorer But the provided code wont work. 😞
@Anonymous Please give a little more detail: what do you mean by "it won't work?" Did you receive any error message?
@mdevaneyThank you for your response. I apologize, I would have provided the error message. Screenshot attached.
@Anonymous
Your column must be named something different than "Value". Type this code section of code and see what comes up in the AutoComplete. Then choose the appropriate column
Dropdown1.Selected.
Thank you @mdevaney … There is no error message. But it wont work for the Red. Seems it is not getting through to the next line: "Off-Track, Red . I have altered the color to check, the first line : "On-Track", Green, is working but not the second part. 😞
This section of code is missing a closing quote
"Off-Track", Red
Apology for my typo, I have provided proper opening and closing quotes. But the result is the same. Its working for the first part while for the second part it is not.Anyway, I am grateful for your support till now.
Can you please share a screenshot of the code you wrote in the formula bar? I am not seeing the reason for the error...
@mdevaney attached.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 379 Most Valuable Professional
11manish 203 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2