how to display alert message when filed value changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 04:26 AM
hi All
i am trying to display an alert message in incident form ,i have configuration item filed when user selects "redbird"option in configuration item filed .i have to pop up a alert message ..saying that "you have selected "redbird as your choice".can any one help ...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 04:35 AM
Hi,
Write on change client script on that field. you can use alert OR
g form method (http://wiki.servicenow.com/index.php?title=GlideForm_%28g_form%29#addInfoMessage&gsc.tab=0 )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 04:38 AM
can you help me with the code pls..i am new to servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 04:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 04:39 AM
Hi
Write a onChange () Client script on Configuration Item field
Script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
var ci=g_form.getDisplayBox('cmdb_ci').value;
alert("Selected CI is= "+ci);
}
Thanks
Pradeep D J
PS - Please mark Helpful, Like, or Correct Answer if applicable.