Show AddINFO message "Caller and Assigned to are same" if caller and assigned to users are same.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2022 01:53 AM
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2022 01:58 AM
Hi @Neelu Shaik ,
Write BR as below :-
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2022 02:04 AM
Thanks for the response.
Can we write it using client script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2022 02:13 AM - edited ‎12-01-2022 02:15 AM
Yes.
As below
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
if(g_form.getValue('caller_id')==g_form.getValue('assigned_to')){
g_form.addInfoMessage("Caller and assigned to are same");
}
}
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2024 04:59 AM
var emp = g_form.getValue('u_employee');
if (emp == g_form.getValue('u_assigned_to'))
{
g_form.clearMessages();
g_form.addInfoMessage('emp & assigned to are same');
} else {
g_form.clearMessages();
g_form.addErrorMessage('emp & assigned to are not same');
}