I would like to know how to set up an email send confirmation in Wappler.
What do you need to send and when?
Anyway It’s as easy as just adding the send mail step to your server action and add your content inside.
I have a form and i need to get a confirmation text after the form is successfully sent.
Andre, Docs are your best friend:
Just follow this tutorial and add the steps shown there to your existing server action …
NOTE: You can have more than one send mail step - so it sends one email to you, and another to the customer, if needed
Teodor, i already checked that documentation, but it only have a reset.
I need a confirmation text after someone successfully send the form.
Do you just want to show a notification after the mail is sent??
Is not working Teodor, is that because i already had a reset action?
No, it is because !!as explained in the docs!! you have to wrap static text you enter in notifications in single quotes:
'Thank you for your choice! During the next 24 hours we'll reply to your email with all the necessary information to complete your booking.'
Its not just that,
is still not working.
That’s because of the single quote used in the text. It must be escaped.
'Thank you for your choice! During the next 24 hours we\'ll reply to your email with all the necessary information to complete your booking.'
Yap, it was that. It works now!!!
The guys asked me for an alternative to this notification. They prefer after they click the send button, the all form should disapear and apear a message instead of the form.
How can i do it?
I already tried with the dynamics attributes - hide/show but it didn’t work.
I created a row:
But then, i only have these options:
and didnt work like this
Use dynamic attributes > hide for the form, and dynamic attributes > show for the success message. You want to show/hide them after the server action executes and the status is
200 OK (the server action form status).
So just use this expression for both:
Yes, when the form is successfully sent, the status will be