Need help on Service Portal to flash a message

shaik_irfan
Tera Guru

Hi,

 

I am getting a data from the server side with whcih i want to flash a message on a page, I looked into Announcements but i think it only displays a static message.

 

My requirement is based on the users locations data will be changing and i want to display on the top of the page just same as Annoucement. 

 

Can anyone please help me how to do this

4 REPLIES 4

Not applicable

Why @Ankur Bawiskar  you guys only trying for mark as helpful you are providing different thing question is different if you dont know then why you guys posted different things just for getting Mark as Correct 

Not applicable
Your ideal choice for such requirement should be g_form.addErrorMessage(message).

Check it out here : https://developer.servicenow.com/dev.do#!/reference/api/orlando/client/r_GlideFormAddErrorMessage_St...

Luiz Lucena
Mega Sage

Hi @shaik_irfan , if I recall correctly you can use the Announcements to achieve that, but you will have to set up one Announcement per location and create the user criteria for that, so when a user from location A logs in, message for that location will be shown.

I'll see if I have details.