Need help on Service Portal to flash a message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 09:40 PM
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
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 10:04 PM
Hi Shaik,
please check below links:
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 08:24 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 11:16 PM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2023 07:23 AM
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.