Caller is Vip or not
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 12:29 PM - edited 12-07-2024 09:28 PM
Check if the caller is VIP or not. If Caller is VIP show alert as ‘Caller ‘-Caller Email ID-’ is VIP ’.
Without using GlideAjax, Write onLoad Client Script.
Using getReference in Client Script.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 06:23 PM
Configure an On-Load Client Script on Incident table as below :
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.getReference('caller_id', function(ref) {
if (ref.getValue('vip') == 'true')
g_form.addInfoMessage(ref.name + '-' + ref.email + '- is VIP');
});
}
Output :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 06:45 PM
@pragatishendre What you've requested.
function onLoad() {
var caller = g_form.getReference('caller_id', function doAlert(caller) {
if (caller.vip == 'true') {
alert('Caller ' + caller.email + ' is VIP');
}
});
}
Execution result: