File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Client-Side Components/Client Scripts/Color-coded Priority field for improved UX Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ # Field Color-Coding Based on Choice Values
2+
3+ ## Purpose
4+ Dynamically change the background color of any choice field on a form based on the selected backend value.
5+
6+ ## How to Use
7+ 1 . Create an OnChange client script on the desired choice field.
8+ 2 . Replace ` 'your_field_name' ` in the script with your actual field name.
9+ 3 . Update the ` colorMap ` with relevant backend choice values and colors.
10+ 4 . Optionally update the ` labelMap ` for tooltips.
11+ 5 . Save and test on the form.
12+
13+ ## Key Points
14+ - Works with any choice field
15+ - Uses backend values of choices for mapping colors.
16+
17+ ## Demo
18+
19+ <img width =" 1710 " height =" 557 " alt =" image " src =" https://github.com/user-attachments/assets/9fb9e68a-1ade-4eb5-81cc-c947c970bd6f " />
20+
You can’t perform that action at this time.
0 commit comments