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

Hi Rohila,

function onLoad() {
   //Type appropriate comment here, and begin script below
    g_form.setReadOnly('designer_external', true);
}

designer_external is the variable set name.find_real_file.png

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

 

Thank you this worked 

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

Hi Sowmya

which solution worked for you?


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You can simply use UI policy for this without any script

UI Policy

Applies on Requested Item - True

Regards
Ankur

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