How to make multirow variable set ready only on RITM after submitting the catalog request

Sowmya MG
Kilo Contributor

Hello Community,

I am using multirow variable set in catalog item it is editable in catalog ,I want to make the multirow variable set ready only in RITM after submitting catalog request.

1 ACCEPTED SOLUTION

Valmik Patil1
Kilo Sage

Hi,

Easy way to do this is using UI policy 

Please refer below article written by @Mark Roethof  which will help you

https://community.servicenow.com/community?id=community_article&sys_id=a3a7a578dbbc0410190dfb2439961...

Or 

If you want to make all the variable on RITM as readonly  then use below code in script

g_form.setVariablesReadOnly(true)

Please let me know if you need any other help

Thanks,

Valmik

 

View solution in original post

9 REPLIES 9

Voona Rohila
Kilo Patron
Kilo Patron

Hi Sowmya

You can write onload clientscript which applies on RITM/TASK with below logic

g_form.setReadOnly('variableset_name', true);

or using UI Policy

refer below link.

https://community.servicenow.com/community?id=community_article&sys_id=a3a7a578dbbc0410190dfb2439961...


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

suvro
Mega Sage
Mega Sage

You can write an onLoad Client script 

check the checkbox applied to requested Item

and uncheck the checkbox applies to catalog item and have the below code

g_form.setReadOnly('variableset_name', true);

Sowmya MG
Kilo Contributor

Hi ,

I have already tried this its not working.

Can you share the image again and post the updated code here.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP