Skip to content

Commit b840e84

Browse files
Create README.md
1 parent 968626b commit b840e84

File tree

1 file changed

+14
-0
lines changed
  • Client-Side Components/Client Scripts/Dynamically Switch Form View Based on Field Value

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Dynamically Switch Form View Based on Field Value
2+
3+
This client script demonstrates how to **automatically switch form views** based on the value of a field.
4+
5+
**Use case:**
6+
For example, if the **Category** field is set to *Hardware*, the form view switches to **ess**.
7+
You can extend this by updating the mapping object to support additional fields and values (e.g., *Software → itil*, *Network → support*).
8+
9+
**Benefit:**
10+
Improves user experience by guiding users to the **most relevant form view**, ensuring the right fields are shown for the right scenario.
11+
12+
**Test:**
13+
- Change the **Category** field to *Hardware* → Form view should switch to **ess**.
14+
- Update mapping to add new conditions (e.g., *Software → itil*) and verify the view switches accordingly.

0 commit comments

Comments
 (0)