Skip to content

Commit 55c575e

Browse files
authored
Create README.md
1 parent 185759c commit 55c575e

File tree

1 file changed

+13
-0
lines changed
  • Client Scripts/Conditional Form Section based on Role

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Conditional Form Sections Based on User Role
2+
3+
## Overview
4+
This client script dynamically shows or hides specific sections of a form based on the logged-in user’s role. It ensures that only authorized users, such as managers, can view and interact with sensitive sections (e.g., budget approvals).
5+
6+
## Use Case
7+
- Managers: Can see the Budget Approval section.
8+
- Other Users: The section remains hidden.
9+
10+
## How It Works
11+
- The script runs onLoad of the form.
12+
- It checks if the logged-in user has the specified role (manager in this example).
13+
- If the user has the role, the Budget Approval section is shown. If not, it remains hidden.

0 commit comments

Comments
 (0)