Why following catalog client script working only for admin user?

Sachin G K1
Kilo Sage

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:

SachinGK1_0-1708233708284.png

Catalog client script:

SachinGK1_1-1708233726478.png

 

 

Abel Tuter without admin role(Can't see result of script include):

SachinGK1_2-1708233962618.png

 

Abel Tuter with admin role(Can see results of script include):

SachinGK1_3-1708234055089.png

 

Thanks in Advance

1 ACCEPTED SOLUTION

Hi Sachin,

 

My bad...can you try updating isPublic function return true

 

/*is Public function*/
isPublic:function(){
return true; //updated
},

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

5 REPLIES 5

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.

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates