Auto closing feedback message generated by a pop up in Outsystems WEB

Hi guys,

How to close error feedback message generated by an action from of  pop-up (Web Block) in Outsystems Web?

Unfortunately, the FeedbackMessage++ component doesn't work in this situation.


Can you help me?

Thank you.

Hi Diego,

Basically, you can access to the HTML element of Feedback Message and remove it.
For instance, that code will close the message after 5 seconds.

After FeedbackMessage action call RunJavascript action with following code.

SyntaxEditor Code Snippet

"setTimeout(function(){
if (document.getElementsByClassName('Feedback_Message_Error').length > 0)
{
    document.getElementsByClassName('Feedback_Message_Error')[0].remove(); 
}}, 5000);"

Hope it helps.

With best regards,
F.Karatay