We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55c575e commit ded602dCopy full SHA for ded602d
Client Scripts/Conditional Form Section based on Role/script.js
@@ -0,0 +1,9 @@
1
+function onLoad() {
2
+ var userHasRole = g_user.hasRole('case_manager'); // Check if user has specific role
3
+
4
+ if (userHasRole) {
5
+ g_form.setSectionDisplay('budget_approval', true); // Show section if user has specific role
6
+ } else {
7
+ g_form.setSectionDisplay('budget_approval', false);
8
+ }
9
+}
0 commit comments