SOLVED

Open lightbox on form submit

Go to solution
Jo_Pitts1
Level 10 - Community Advisor

All,

I've got a Marketo form on a Marketo landing page.  I have progressive profiling enabled on the form.

What I'd love to be able to do is, when the user clicks the submit button, show a lightbox that says something like 'thanks for the info, feel free to keep right on 'fessing up, and tell us more'.  If they close the lightbox, the form needs to refresh with the new progressive fields displayed.

It seems that I need more access to the HTML than is provided.  It looks like I could use the jquery simple popup, but I believe that would need access to the HEAD tag of the page.  However, this isn't my area of expertise so I'd love some advice as to how to achieve my goal.

Cheers

Jo

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

Look at MktoForms2 :: nation/43232

In the onSuccess, I'm replacing the content (using innerHTML, you could use a pure DOM method if you want). The content contains a link, which when clicked navigates to the Thank You URL (which would be the same page, if you were using the default behavior).

View solution in original post

11 REPLIES 11