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

Hi Soumita,

We actually have this code but it is not being applied to the multi-row variable set. I don't know why.

Diane

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.

Hi Soumita,

Unfortunately, doesn't work too. I don't think this script works for multi-row variable set. I'll try to look for other solutions.

Regards,
Diane

Hi Diane,

 

Hope this helps:

 

https://community.servicenow.com/community?id=community_question&sys_id=11a403e9dbd8dbc01dcaf3231f96194a

 

Thanks,

Soumita.

Hi Soumita,

I created a new client script and disabled the old one and used your code g_form.setVariablesReadOnly(true) and I was able to make the MRVS to read-only. Thank you.

Diane