- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2024 09:29 PM
Hi All,
I am check if user is part of group "application development" then it should hide data card checkbox. Following script working only for admin users. Please help!
Script Include:
Catalog client script:
Abel Tuter without admin role(Can't see result of script include):
Abel Tuter with admin role(Can see results of script include):
Thanks in Advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2024 10:40 PM
Hi Sachin,
My bad...can you try updating isPublic function return true
/*is Public function*/
isPublic:function(){
return true; //updated
},
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2024 11:11 PM
isPublic (){return true;} function makes the script include public i.e. it will be available for all users.
and isPublic() will take the precedence over this 'glide.script.ccsi.ispublic' property for particular script include if it is defined in script include or else script include remains private.
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates