The CreatorCon Call for Content is officially open! Get started here.

Make Variables on a catalog item visible and editable for certain group members and only Visible but not editable to others.

Varshitha
Tera Contributor

Hi All,

I was given a task to create a variable in a variable set of a catalog item and one of the requirements is that variable should be only visible and editable to a certain group members (which includes members of a particular group and members of  org level 3) and only visible but not editable to others. I need to achieve this through scripting and not through an SLA. Can anyone help as to how I can achieve this? I'm still new to this so I'm not really sure how this should work.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use onLoad client script + GlideAjax

Check logged in user is member of that group or not

Based on that make it editable or visible

Please start from your side and it would be learning for you as well.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Anil Lande
Kilo Patron

Hi,

I guess you have opened  another question for this requirement.

https://community.servicenow.com/community?id=community_question&sys_id=39a145361b9b8910c16b43f6fe4b...

 

Please check the corrected scripts posted on above link.

 

Note: Please avoid creating duplicate questions if you are getting response on one thread.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande