I’d like to build a simple toast system in my Adalo app that shows a short confirmation like “Sent Message” immediately after the user sends a message.
What’s the best way to implement this in Adalo?
Is there a ready-made component in the marketplace for auto-dismiss toasts/snackbars?
Or do I need to build it manually with visibility rules and countdown timers?
I’d love to hear what approaches have worked well for others. Thanks in advance!
you can link the user to a confirmation screen and link back automatically (e.g. with timer or lottie)
you can add a toast on the screen, make it conditionally visible, show it when the condition matches and reset condition with timer in, say, 2 seconds. You can store the visibility condition either in the database (Users collection), or in the Input. If you use Users database:
– add the property isToastOn, type Boolean (True/False). Set it to False by default
– after sending the message, update Logged-in User → isToastOn to True
– create a rectangle with the toast text and a timer. Add an action to the timer, when it’s finished, update Logged-in User → isToastOn to False. Set timer to, say, 2 seconds.
– make this “toast rectangle” conditionally visible, when isToastOn is True
– as a result: user sends the message, rectangle is shown, timer finishes → rectangle is hidden.
similar approach could be used with Input, not a database property (and I assume Input should work a bit faster). The difference is that you will need to use text values for visibility.
Hi @Victor, I’m sorry for asking something that had already been discussed before.
At the same time, I really appreciate the clear explanation and the helpful details you shared — it makes much more sense to me now. Thank you!