- 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 10:09 PM
Hello @Sachin G K1
It might be because of access issue with script include.
Can you try adding this function in your script include & then try :
/*is Public function*/
isPublic:function(){
return false;
},
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 10:29 PM
I tried it didnt work
- 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 10:53 PM - edited 02-17-2024 10:54 PM
Yes, its working now, can you please explain why itsn't working first and what this function do and how did this helped here