0
function onChange(control, oldValue, newValue, isLoading) {
g_form.getReference('caller_id', CheckVip); // doAlert is our callback function
}

function CheckVip(caller) { // reference is passed into callback as first arguments
if (caller.getValue('vip') == 'true') {
alert('Caller is a VIP!');
}
}
How to use Callback function ServiceNow using client script?
admin Changed status to publish December 19, 2023