how can we check one dot walk field & list collector field on the form selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2022 01:22 AM
we have onchange client sctipt on priority field. when the priority changes to critical, then it has to check two fields, if those fields contains the values then it should not pop up, other wise show pop up.
the fisrt field is reference field assignemnt group, and we have to dot work to the selected assignement group record (remote system)
another field is list collector field type (glide_list). we have to theck if this field contains the value UD in it.
//----------------------check assignment group.remote system field coniatins UD-------------//
var asgnmntgrp = g_form.getDisplayBox('assignment_group').value;
var remote = String(asgnmntgrp.u_remote_system).indexOf('UD');
alert('After getting remote' + remote);
//---------------check list collecter field values contains UD -------------//
var ip = g_form.getValue('u_partner_integrated') + '';
var ip2 = ip.indexOf('UD');
alert('After getting ip' + ip2);
currently there is no value coming in the alert , please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2022 08:22 AM
Hi,
list collector holds sysIds then how you will check if the value contains UD in it?
another field is list collector field type (glide_list). we have to theck if this field contains the value UD in it.
You should query the table being referred by that list field and search if the display value contains UD in it
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader