How to make multi-row variable set read-only on RITM and Catalog Tasks?

dianemiro
Kilo Sage

Any chance someone here already made the multi-row variable set to read-only on RITM and Catalog Tasks?

Thanks,
Diane

1 ACCEPTED SOLUTION

Hi Diane,

 

Could you please use g_form.setVariablesReadOnly(true);  and let me know if this works?

 

Please mark the answer as correct if it suffice your query.

 

Thanks.
Soumita.

View solution in original post

13 REPLIES 13

Si Min
Giga Expert

Hi Diane,


I'm working on a similar request; to have the MRVS set as read-only.
I did follow Soumita suggestion, apply the g_form.setVariablesReadOnly(true) in Catalog Client Script, but still not work for me.
Is there anything else to take note?


Thanks.

Hi there,

We are just using a UI Policy + UI Policy action on the MRVS itself, to make it read only. Works fine! On the UI Policy When to apply, only check the "Applies on Requested Items" checkbox. No conditions on the UI Policy, so it will run onLoad.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks Mark. 

I got it done. 

Chaithanya10
Tera Contributor

Write UI policy on catalog item and select "variable set name" in the "Name" field of the UI policy action.

It will disable all buttons like"Add","remove"