Skip to content

Latest commit

 

History

History

Conditional Form Section based on Role

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Conditional Form Sections Based on User Role

Overview

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).

Use Case

  • Managers: Can see the Budget Approval section.
  • Other Users: The section remains hidden.

How It Works

  • The script runs onLoad of the form.
  • It checks if the logged-in user has the specified role (manager in this example).
  • If the user has the role, the Budget Approval section is shown. If not, it remains hidden.