Single row variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 04:34 AM
In a catalog item there is a single row variable set which has couple of variables. Inside the variable set there is an ui policy which is setting 2 variables form the variable set mandatory and visible based on the condition zone is A and have an account is yes. Outside the variable set I have written an on-change catalog client script which is setting those 2 variables read only based on the condition zone is A, have an account is yes and what you want is service but this client script is not working.
Can anyone please help me out. It is urgent.
Thanks in advance.
Regards,
Abhisek Chattaraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 05:03 AM
clearly there is a conflict between the UI policy and client script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 05:17 AM
Hi @Ankur Bawiskar ,
Thanks for your reply. Does that mean we can't set those 2 fields read only using client script due to the ui policy inside variable set?
Regards,
Abhisek Chattaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 05:22 AM
if the variable is mandatory then you cannot make it read-only
To make it readonly you need to make it non-mandatory first
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
