- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 03:55 AM
Hi,
Is there a way to make a multi row variable set mandatory?
Recently I had the requirement to make a planned outage date variable where up to 7 dates can be added. I have done that using a mutli row variable set with start and end date/time variables and its working well.
The only problem is that this question on the form is not mandatory and the user can skip it. Is there a way to make this question that is the multi row variable set mandatory? Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:04 AM - edited 05-06-2025 04:05 AM
Yes, you can make the MRVS mandatory using catalog UI policy (Catalog item). PFB
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:54 AM
you can use Catalog UI policy for this as shared by @J Siva
OR
You can use onLoad catalog client script which Applies to Catalog Item and make it mandatory
function onLoad(){
g_form.setMandatory("mrvsVariableSetName", true);
}
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-06-2025 04:04 AM - edited 05-06-2025 04:05 AM
Yes, you can make the MRVS mandatory using catalog UI policy (Catalog item). PFB
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:59 AM
hi @J Siva thanks so much. Such a simple yet smart solution!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:54 AM
you can use Catalog UI policy for this as shared by @J Siva
OR
You can use onLoad catalog client script which Applies to Catalog Item and make it mandatory
function onLoad(){
g_form.setMandatory("mrvsVariableSetName", true);
}
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-06-2025 05:00 AM
Thanks @Ankur Bawiskar I have implemented the UI policy solution, but this would also work.