Is there a way to make info feedback message stay on screen till clicked, disabling the auto-hide such as for error and warning messages? Without using a forge extension.
I did try changing the CSS for feedback-message-autoclose, making the animation-duration longer - This did not work, as the fade in and fade out also got affected, making it really slow.
These are all good solutions.
I ended up using:
$public.FeedbackMessage.showFeedbackMessage("Your data has been submitted.", 1, true, "", false);
where I, instead of using '0' for info, I used '2' for warning to get its functionality with staying on-screen till clicked away. I made a custom CSS "custom-feedback-message" building on previous CSS classes to replace the icon and colors with the correct ones for "info" message.
Thank you all.
Thanks! That works on me.
hello, cristoffer,
referring to Rui Barradas answers for different questions,
Basically, you are adding a feedback-message-autoclose class to your message, which has an attribute called animate-duration of 5s. This is why your message closes automatically after 5-7 seconds.
Additionally, it is essential to mention that Info and Success messages have this extra class by default, while Warning and Error messages don't.
Nevertheless, please consider using this component:
https://www.outsystems.com/forge/component-overview/9691/feedback-message-utils-reactive
It already has that logic implemented considering both cases, so you just need to add it as a dependency to your module :)
I believe that you want to use this client action:
ShowFeedbackMessageWithTimeout
As an example (info message with a 20s duration), it would be something like this:
Kind regards,
Shohaib
@Shohaib Khan Thank you, I have already seen this one. I want the opposite type of action. I want the message to stay open until closed by end-user. Basically I want to implement the logic for warning and error messages for the info message, no timeout and auto-hide after a set amount of time.
the post shared below by tausif,
using the feedback API, we can do that
Hello
You can check the available options here by which you can do that you need to write some JS
Using Feedback message API we can do that.
https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/JavaScript_API/FeedbackMessage?_gl=1*amlwh0*_ga*ODA3MTA2ODIwLjE2NjEwMTM5NjI.*_ga_ZD4DTMHWR2*MTY2NTA1MjI2MS4xMzEuMS4xNjY1MDUyNTcxLjAuMC4w
Ihope this will help
Best regards
Tousif Khan
thank you for the answer.