Hi, hope you are well.
I am trying to implement a toast after successfully submitting a form. When I submit my toast during brief seconds until it redirects or refreshes the page. How can I prevent this issue?
I’ve been looking around, and tried a few possibilities, but none of those worked for me.
Thank you in advance
Are you wanting to show the toast alert and not have the page redirect to the success page?
If so have you tried submitting via AJAX and removing the action... from the <form>? If you use an AJAX submit, you can choose what happens after the submit, including redirecting to another page or loading a modal/alert.
If this doesn’t work, can you share details of what you have tried?