How to make read only a catalog item?

viki_ka
Tera Contributor

Hi All,

How to make read only a catalog item,

If we select an item from category it should be read only otherwise we shouldn't placed an order,

Please tell me solution,

Thanks

1 ACCEPTED SOLUTION

akshaybhardwaj
Mega Guru

Hi Vikas,



Can you please elaborate what you want?Do you want like end user should not able to order a particular item after clicking on the category.


If yes then we have achieved this by checking


find_real_file.png



find_real_file.png



Thanks & Regards,


Akshay Bhardwaj


View solution in original post

4 REPLIES 4

ghsrikanth
Tera Guru

You can write an onChange script on the variable -


check the value that you have selected



if(newValue == 'particular value'){



g_form.setReadOnly('variablename',true);



}



Hopefully it helps


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Vikas,



You can create a Catalog UI policy to hide/readonly the filed as per your logic with out any scripting involved.


Service Catalog UI Policy - ServiceNow Wiki



I hope this helps


akshaybhardwaj
Mega Guru

Hi Vikas,



Can you please elaborate what you want?Do you want like end user should not able to order a particular item after clicking on the category.


If yes then we have achieved this by checking


find_real_file.png



find_real_file.png



Thanks & Regards,


Akshay Bhardwaj


viki_ka
Tera Contributor

Thanks Akshay