- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 04:12 PM
Is there a straight forward way to replicate the behaivor of the current top blue box that Hi Support displays for announcement?
Thanks,
David
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 10:02 PM
Hi David [davidsizu ],
This is a custom implementation in HI. In the Header widget attached to the theme of the portal, you can make below modification to achieve this.
Server:
- Fetch the systemwide notification properties from the sys_property table.
- If the notification is only for logged in user - use gs.isLoggedIn() to determine if the notification is for guest/authenticated user. Since the header is also visible on the unauthenticated page, you might want to add this check.
Sample code:
data.securityMessageText = gs.getProperty('systemwide.security.message.text', '');
data.securityMessageLinkURL = gs.getProperty('systemwide.security.message.linkurl', '');
data.isLoggedIn = gs.getSession().isLoggedIn();
HTML Template:
- Update the HTML to show the custom announcement banner
- Use the above data properties to show data.
On cancel, we are storing the state in the session so that the message will not appear for the current session of the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 03:34 PM
Hi Vinamra, thank you for your response, it sounds very promising.
I have a question based on this. Are the systemwide notifications properties restricted to ServiceNow personnel access only? Im now able to find it in the sys_properties table neither in Istanbul or Helsinki versions.
Thank you,
David Silva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2017 11:29 PM
Hi David,
I checked the OOB instance and it looks like the properties are also custom created even before my time.
You can create new properties to hold the text and URL separately and use them as above.
Let me know if you need more details for implementation.
Thanks,
Vinamra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 11:09 AM
Hi Vinamra,
do you have sample html code to achieve this? do we need to update client controllers also along with server script and html?
Thanks,
Radhika

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2018 12:20 PM
So is this announcement only possible in the portal, or the platform as well? I noticed the screenshot above has it on the platform.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 11:22 AM
Hi David,
The Customer Experience team is striving to ensure that customer queries posted from the HI Service Portal are answered in timely and accurate fashion.
If you feel your question has been resolved, please mark the appropriate reply in the thread as being the Correct Answer.
Thank you in advance.
Regards,
Teena Singh
Customer Experience: UX Strategy and Customer Insights
teena.singh@servicenow.com
ServiceNow