GlideSystem - addMessage(String type, Object message)

Adds a message for the current session.

Table 1. Parameters
Name Type Description
type String Type of message
message Object The message
Table 2. Returns
Type Description
void

gs.include("FormInfoHeader");
var fi = new FormInfoHeader();
var s = 'An incident ' + current.number + ' has been opened for your request.<br/>';
s += 'The IT department will contact you when the password is reset or for further information.<br/>';
//s += 'You can track status from the <a href="home.do" class="breadcrumb" >Home Page</a> <br/>';
fi.addMessage(s);
producer.redirect = 'home.do?sysparm_view=ess';