221
Views
3
Comments
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.

Rank: #343

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!

Rank: #51134

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