function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var vipalert = g_form.getReference('u_caller',vipFunction);
function vipFunction(vipAlert){
if(vipAlert.vip == 'true'){
g_form.setValue('priority', '1');
alert('The caller is a VIP person');
}
}
}
No comments:
Post a Comment