Allow embedded forms to display a success or confirmation message after submission | Community
Skip to main content
February 4, 2014
Duplicate

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

  • February 4, 2014
  • 2 replies
  • 1257 views
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 replies

New Participant
February 7, 2020
No text available
March 12, 2014
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.