1291
Views
5
Comments
Solved
Close feedback Message automatically after a defined time
Question

please i want to know how to close web feedback messages and how to define a time out for each feedback Message ? 

i Already Used this Script but gives me an error of undefined hide property : 

RichWidgets_Feedback_Message_widget.hide('slide',{direction:'up'}, 500)

and also tried to use this component but also produce a client script error :

https://www.outsystems.com/forge/component-overview/1079/feedbackmessage

2019-06-15 21-39-22
Afonso Carvalho
 
MVP
Solution

Hi Amr,

You could use something like this to hide your feedback messages:
    $('.Feedback_Message_Warning').hide();
    $('.Feedback_Message_Error').hide();
    $('.Feedback_Message_Info').hide();

The timeout is a little trickier: perhaps you could execute this wrapped in a setTimeout, and you'd call it after errors in your actions:

setTimeout(function() {     
    $('.Feedback_Message_Warning').hide();
    $('.Feedback_Message_Error').hide();
    $('.Feedback_Message_Info').hide(); }, DELAY_IN_MILLISECONDS);


2019-05-22 11-30-09
Marcelo Ferreira

Hi,

Which errors are you getting in both situations?

Regards,

Marcelo

2019-06-15 21-39-22
Afonso Carvalho
 
MVP
Solution

Hi Amr,

You could use something like this to hide your feedback messages:
    $('.Feedback_Message_Warning').hide();
    $('.Feedback_Message_Error').hide();
    $('.Feedback_Message_Info').hide();

The timeout is a little trickier: perhaps you could execute this wrapped in a setTimeout, and you'd call it after errors in your actions:

setTimeout(function() {     
    $('.Feedback_Message_Warning').hide();
    $('.Feedback_Message_Error').hide();
    $('.Feedback_Message_Info').hide(); }, DELAY_IN_MILLISECONDS);


2020-02-28 09-46-54
Eduardo Jauch

Hello Amr,

You probably are missing the widget that is required to the Feedback++ to work:

Please, see the application attached to a working example:

Hope this helps.

Cheers.

FeedbackMessageTest.oap
UserImage.jpg
Buds

working on SilkUI but not in OutsystemUI

2019-06-15 21-39-22
Afonso Carvalho
 
MVP

Hi Buds,

It's possible OutsystemsUI uses different classes than the ones above - all you need is to identify the classes and hide them in the same way.

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