Pop-Up/Alert Window - Client Script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2012 01:53 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2012 09:27 AM
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!');
}
}