Skip to content

Commit 8b66e69

Browse files
authored
Created README.md
1 parent 01bb3d8 commit 8b66e69

File tree

1 file changed

+20
-0
lines changed
  • Client-Side Components/Client Scripts/Color-coded Priority field for improved UX

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+

0 commit comments

Comments
 (0)