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

Ferhat Karatay wrote:

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

 

 This works like a magic! thank you!

This works for me as well. In my case, class = "feedback-message-wrapper"


Is it possible to close the pop-up error message within a pop-up page?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.