Pop-Up/Alert Window - Client Script

rsanon
Tera Contributor

Looking for a script that will check if a caller's mobile number is empty on the User Table. If so an alert message should pop up?

Is this easy to do? Thanks for in advance for any advice.

1 REPLY 1

rsanon
Tera Contributor

I think I have an idea....


function onChange(control, oldValue, newValue, isLoading) {
var caller = g_form.getReference('caller_id', doAlert); // doAlert is our callback function
}
function doAlert(caller) { //reference is passed into callback as first arguments
if (caller.phone == ''){
alert('We do not have a business phone for this caller!');
}
}