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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shaik,

please check below links:

https://community.servicenow.com/community?id=community_question&sys_id=3a932aa9dbe99bc047c8f3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=64cfcb65dbdcdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_blog&sys_id=e95d6629dbd0dbc01dcaf3231f961983

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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 

Community Alums
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.