Allow embedded forms to display a success or confirmation message after submission

Allow embedded forms to display a success or confirmation message after submission

The embed form function is great and something we've wanted for a while, but the fact that you can't display a success or confirmation message after they submit the form kind of defeats the purpose. If you have to send visitors to another URL or landing page you might as well use the iframe method and keep them on the same parent page the entire time. The way it is now, the page refreshes and there's no indication to the user that they've submitted their information successfully.
2 Comments
Anonymous
Not applicable
The basis for how to do this can be found at http://developers.marketo.com/documentation/websites/forms-2-0/

 
 In my test I built on Example #1 and added the following line right after the .hide() method was called:

form.getFormElem().after("<p>Thank you!</p>"); 

and this caused it to display "Thank you!" in place of the form after being submitted.
kh-lschutte
Community Manager
Status changed to: Already have it