SOLVED

Open new popup build in elementor after marketo form submit

Go to solution
Orij
Level 2

Open new popup build in elementor after marketo form submit

Hello comunity! is there any way to show popup ( thank you + button ) that i build in elementor pro after form submit?
Thanks! 

Oleg Rijikov
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Open new popup build in elementor after marketo form submit

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
  });
});

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Open new popup build in elementor after marketo form submit

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
  });
});
Orij
Level 2

Re: Open new popup build in elementor after marketo form submit

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.

Oleg Rijikov
SanfordWhiteman
Level 10 - Community Moderator

Re: Open new popup build in elementor after marketo form submit

Is this on a Marketo LP?

Orij
Level 2

Re: Open new popup build in elementor after marketo form submit

No, I embed marketo form into my wordpress landing page

Oleg Rijikov
SanfordWhiteman
Level 10 - Community Moderator

Re: Open new popup build in elementor after marketo form submit

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.

Orij
Level 2

Re: Open new popup build in elementor after marketo form submit

Thank you @SanfordWhiteman  🙏

Oleg Rijikov