Display a messgae on load if requested for is a VIP user (need to be bold and italic)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2020 09:22 AM
Hi All,
please help me on the above question by using business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2023 08:53 PM
So what's the error and what's not working?
can you share?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2023 09:12 PM
@Ankur Bawiskar , The requirement was to show a message on top of the form if the VIP is mentioned in caller. But despite of writing this onLoad client script, it's not popping up the alert even when VIP user being selected in the 'caller_id' field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2023 06:42 AM
try this
function onLoad() {
//Type appropriate comment here, and begin script below
var jcheck = g_form.getReference('caller_id', callBackMethod);
}
function callBackMethod(jcheck){
if(jcheck.vip.toString() == 'true'){
alert('User is VIP');
}
}
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2023 08:40 AM
Thanks Ankur. But the alert is popping-up but after submission of the record. As the client script is onLoad, shouldn't it be the expectation for the alert to pop-up right after the field value is selected !!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2020 10:31 AM