Add announcement message in Platform(Native) UI

Ahmmed Ali
Mega Sage

Hi All,

I was able to add announcement messages to service portal using "SP Announcement" as shown below.

find_real_file.png

 

But I would like to have similar functionality in Platform UI also.

I went through below thread but it seems it is applicable to service portal only as we will be updating header widget there.

https://community.servicenow.com/community?id=community_question&sys_id=2b888721db5cdbc01dcaf3231f96193c

 

Please help me to have the same in Platform UI.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali
1 ACCEPTED SOLUTION

Paul Curwen
Giga Sage

Hi Ahmmed,

 

We use this:

https://docs.servicenow.com/bundle/london-platform-user-interface/page/administer/navigation-and-ui/...

 

Works brilliantly. All you need to do is update the users preference to false on the Overview page and next time they log in they get the popup announcement. 

 

Regards,

 

Paul

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

View solution in original post

12 REPLIES 12

sachin_namjoshi
Kilo Patron
Kilo Patron

You can write onload client script to show form messages for native UI.

check example below

 

function onLoad() {

        if (g_form.isNewRecord()) {

                  g_form.addInfoMessage('User message here.');

        }

}

 

Regards,

Sachin

Hi Sachin,

 

Thank you for your response.

 

This would work for new record. I wanted something like announcement where we can add regular SNOW changes.

 

thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Paul Curwen
Giga Sage

Hi Ahmmed,

 

We use this:

https://docs.servicenow.com/bundle/london-platform-user-interface/page/administer/navigation-and-ui/...

 

Works brilliantly. All you need to do is update the users preference to false on the Overview page and next time they log in they get the popup announcement. 

 

Regards,

 

Paul

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Hello Paul,

 

Thank you for response.

 

Please let me know the user preference name which needs to be updated.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali