- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2016 10:46 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2016 12:43 AM
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
Thanks & Regards,
Akshay Bhardwaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2016 11:06 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2016 11:09 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2016 12:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2016 03:31 AM
Thanks Akshay