Make all variables read only on catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 03:39 AM
I want to make variables read only on a catalog item through onload script when certain conditions are met. Tried the options in
but could not get it working. Any ideas?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 03:40 AM
Hi there,
Do you want this on Platform UI or Service Portal?
And do you are actually mean Requested Item instead of Catalog Item?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 03:59 AM
This is on Service Portal, Its on catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 04:16 AM
Hi,
I believe this you require on RITM view i.e. once request has been submitted so that user doesn't edit the variable values.
why would you require all variables to be read-only while raising the request/catalog? this would not allow users to change the value before submission
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 03:51 AM
Hi,
Try to create a catalog UI Policy applied to your item and with your custom conditions. Inside you set each variable to readOnly, also if your conditions are based on user/groups you should consider create ACL instead using client script side.
If it was helpful, please give positive feedback.
Thanks,
☆ Community Rising Star 22, 23 & 24 ☆