Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2026 08:57 AM
Hi @Balaram7
Try this one-
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var selList = g_form.getValue('your_variable');
var selArray = selList.split(',');
for (var i = 0; i < selArray.length; i++) {
// Do what you want to the retrieved record
var ga = new GlideAjax('CheckTrustedpartner');
ga.addParam('sysparam_name','check');
ga.addParam('sysparam_ids',selArray[i]);
ga.getXML(function(response){
var answer = response.responseXML.documentElement.getAttribute("answer");
if (answer){
g_form.setValue('trusted_partner',true);
break;
}
}
}
}
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti