Before Business Rule for Insert and Update is not showing Info message properly.

pandeyved
Tera Contributor

I need one help in Before Business Rule when insert and Update is checked.
I am writing this script on Task Table:

 

(function executeRule(current, previous /*null when async*/) {
    // Check if the visibility group has changed and the info message has not been added already
    if (previous.u_secure_visibility_group != "" && previous.u_secure_visibility_group != current.u_secure_visibility_group && !gs.hasInfoMessages()) {
        gs.addInfoMessage("Test");
    }
})(current, previous);
But the issue is this info message is appearing at the top but again disappearing after some miliseconds
What can be the cause.
Thanks
 
1 ACCEPTED SOLUTION

This will work for Native UI as well @pandeyved 

View solution in original post

6 REPLIES 6

Meloper
Kilo Sage

HI, to you show the record in Portal?
Maybe you can check this:

Meloper_0-1707373389260.png

 

Hi @Meloper 

Thanks, but I am talking about native UI.

SanketLandge1
Kilo Guru

Hello @pandeyved 

 A system property has been added to configure the message timeout. The property is "glide.service-portal.notification_timeout.seconds" and you can set this to 0 to have the popup not timeout unless the X is clicked.

 

Mark this to helpful or correct if this helps you

SanketLandge1
Kilo Guru

Hello @pandeyved .

 

set property "glide.service-portal.notification_timeout.seconds" to 0