Solved
Insert text after hiding embedded form on submit
I would like to use an embedded form to capture subscribers to my blog. When I embed the form, I plan to use the developer code to hide the form upon successful submission.
What I'd like to do is add some text to appear in place of the form - e.g. "Thank you for subscribing". Does anyone know how I can do that?
The code to hide the embedded form is as follows:
<script>MktoForms2.loadForm("//my.marketoinstance.com", "my account", form number, function(form){
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl){
//get the form's jQuery element and hide it
form.getFormElem().hide();
//return false to prevent the submission handler from taking the lead to the follow up url.
return false;
});
});</script>
Thanks in advance for your help!
What I'd like to do is add some text to appear in place of the form - e.g. "Thank you for subscribing". Does anyone know how I can do that?
The code to hide the embedded form is as follows:
<script>MktoForms2.loadForm("//my.marketoinstance.com", "my account", form number, function(form){
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl){
//get the form's jQuery element and hide it
form.getFormElem().hide();
//return false to prevent the submission handler from taking the lead to the follow up url.
return false;
});
});</script>
Thanks in advance for your help!