set variable outside MRVS mandatory based n MRVS value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 02:21 AM
Hi ,
Need help. We have a MRVS variable set ( software lists ) which contains a variable field (software).
We want to set "additional comments" field mandatory which is outside MRVS if software is other.
Tried creating an on-change client script as below but not working.
Script:
var arr = JSON.parse(g_form.getValue('software_lists'));
Service Portal screenshot:
Regards,
B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 03:03 AM
Hi @Bijender ,
You can use the service catalog api, check below url:
https://developer.servicenow.com/dev.do#!/reference/api/tokyo/client/g_service_catalogClientAPI#g_se...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 03:04 AM
Hi @Detlef Biederma,
Please have a look at these links if it helps.
Mark this answer as correct and helpful if it solves your issue.
Regards,
Siva Jyothi M.