Monday, September 10, 2018

How to Make Variables Read Only Using g_form in ServiceNow

Variables Read Only

1. I was recently working with a colleague who mentioned that he had seen a new (un-documented) g_form method which allows you to set all catalog item Variables to Read Only.

2. Perform this trick (makes it so fulfillers of tasks update variables but they can’t be updated from the catalog item request). 

Use the below code on your catalog client script :-

g_form.setVariablesReadOnly(true);

2 comments:

PLEASE LEAVE YOUR COMMENT