Attention: The Marketo Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.
Hello comunity! is there any way to show popup ( thank you + button ) that i build in elementor pro after form submit?
Thanks!
Solved! Go to Solution.
Not enough information here.
You can do anything you want after the form is successfully submitted, by adding a custom onSuccess listener.
MktoForms2.whenReady(function(mktoForm){
mktoForm.onSuccess(function(submittedValues,originalThankYouURL){
// whatever you want;
return false; // so the default redirect to the originalThankYouURL is disabled
});
});
Not enough information here.
You can do anything you want after the form is successfully submitted, by adding a custom onSuccess listener.
MktoForms2.whenReady(function(mktoForm){
mktoForm.onSuccess(function(submittedValues,originalThankYouURL){
// whatever you want;
return false; // so the default redirect to the originalThankYouURL is disabled
});
});
Actually I want to create kind of thank you light box that will appear after i submit the form.
I found some posts about lightbox but in some case i can't insert there many text and style this thank you massage —
https://nation.marketo.com/t5/product-discussions/lightbox-after-form-submitted/m-p/215267#M158345
So i created wordpress - elementor styled popup with ID, Class and I want to show this popup after form submit... actually elementor have this function < action after form submit > but only for elementor forms. How can i do this in marketo form? i will be appreciative for example of code.
Is this on a Marketo LP?
No, I embed marketo form into my wordpress landing page
You'll have to know how to use the Elementor JS API, then call it onSuccess.
IMO, not a great idea to use a library that's designed for another type of form. You should use libraries that are form-agnostic. There are literally hundreds of popup/modal libraries.
Thank you @SanfordWhiteman 🙏