- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2023 01:49 AM
I wanted to pop up alert If the existing assignee is being removed from incident, show an alert
on form with some xyz message: how can I achieve it
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2023 02:01 AM
Hello @Viri
You can write onChange client script on "Assigned to" field
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
if (newValue == '') {
// for pop up
alert("You have just removed Assignee...!!");
// or you can show field ,essage as well
g_form.showFieldMsg('assigned_to', "You have just removed Assignee...!!", "error");
}
}
Output :
Alert Pop-up
Field Message :
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2023 02:01 AM
Hello @Viri
You can write onChange client script on "Assigned to" field
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
if (newValue == '') {
// for pop up
alert("You have just removed Assignee...!!");
// or you can show field ,essage as well
g_form.showFieldMsg('assigned_to', "You have just removed Assignee...!!", "error");
}
}
Output :
Alert Pop-up
Field Message :
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2023 02:29 AM