Skip to content

Commit 6c6887d

Browse files
Update README.md
1 parent add91c7 commit 6c6887d

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

Client-Side Components/Client Scripts/Dynamically Switch Form View Based on Field Value/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ Improves user experience by guiding users to the **most relevant form view**, en
1212
**Test:**
1313
- Change the **Category** field to *Hardware* → Form view should switch to **ess**.
1414
- Update mapping to add new conditions (e.g., *Software → itil*) and verify the view switches accordingly.
15+
16+
**How to Use:**
17+
1. **Modify the table name** in the `switchView` function to match your target table:
18+
```javascript
19+
switchView("section", "<your_table_name>", targetView);
20+
2. **Modify the view mapping**

0 commit comments

Comments
 (0)