Skip to main content
April 30, 2015
Question

Popup after submittingn theh form

  • April 30, 2015
  • 11 replies
  • 3371 views

Hi,

I want a youtue video popup after the form is sucessfully sumitted. I tried using the Forms2.0 customization, below are the steps I have done - 

Step 1: in a landing page using a html I am loading a form by embed method
(<script src="//app-ab07.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1048"></form>)

Step 2: Added a script tag in the same HTML for opening a video in a popup
(<script>
MktoForms2.loadForm("//app-ab07.marketo.com", "386-ELQ-047", 1048, function(form){
  form.onSuccess(function(values, followUpUrl){
window.open("https://www.youtube.com/embed/aaabbbcccc", "PopupWindow", "scrollbars=no,resizable=no");
  });
});</script>)

As per the above steps the video is opening in a popup as expected but the issue I am facing is the form fills are not getting captured.

When I check the landing page statistics I can see the views but not the forms filled. I believe the calls are not going. Can some please let me know what I am missing here.



Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

11 replies

SanfordWhiteman
Level 10
May 1, 2015
Great!