- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 01:15 AM
There is a variable called Billing rate on SCTASK and RITM.
Need to show this field only to the users who belongs to "PPM Admin" group.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 02:42 AM
Steps
1) create a new role and add to your Group "PPM Admin"
2) then you can use catalog client script on your catalog item which applies on Requested Item and Catalog Task
Script
function onLoad(){
if(!g_user.hasRoleExactly('roleName'))
g_form.setDisplay('variableName', false);
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 02:04 AM
Hi
You can create onLoad client script in the catalog item and mark True for "Applies on Requested item" and "Applies on Catalog task" and use Glideajax to check if user belong to the particular group and then hide or show fields on the form.
Function to use would be:
gs.getUser().isMemberOf("sys_id_of_PPM ADMIN group");// returns true if logged in user is member of the group.
Feel free to mark correct, if your issue has been resolved, so it ends up in solved queue.
Will be helpful for others looking for the similar query.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 02:42 AM
Steps
1) create a new role and add to your Group "PPM Admin"
2) then you can use catalog client script on your catalog item which applies on Requested Item and Catalog Task
Script
function onLoad(){
if(!g_user.hasRoleExactly('roleName'))
g_form.setDisplay('variableName', false);
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader