addInfoMessage disappears in few seconds on the portal

Suresh93
Tera Guru

Hello Community,

 

I hope everyone is doing good.

 

Requirement: We are using a custom app where we have to display a message on the portal form.

Approach: We have created a BR and have used addInfoMessage to display the message.

Result: Message is displayed correctly.

Problem: This message disappears in few seconds and does not give user enough time to go through the complete msg.

We would like to have this msg displayed until user clicks on the X icon.

 

Is there a way by which we can make this work? Any help would be really appreciated, thanks!

 

Kind Regards

Suresh

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @Suresh93,

 

You need to update property for Service portal by Navigating to Service Portal ---> Properties

 

Duration (in seconds) info and error messages persist in the Service Portal before auto-dismissal.

5 sec to 60/ required time in seconds

 

Take a look at KB: addMessage popup is inconsistently disappearing or staying up in the service portal 

 

glide.service-portal.notification_timeout.seconds

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar

The world works with ServiceNow

Hi Sagar,

 

I understand updating this property will apply to all the messages on the portal. However, we only want it for specific messages. May I know if this can be done? OR can we override this property only for a specific custom application?

 

Kind Regards

Suresh

arunmech2001
Tera Contributor

Do you have any solution for it? I have a similar issue: an info message appears and disappears within a few seconds of the form loading.