Lightbox form AND embedded form on a landing page | Community
Skip to main content
Sarah_Way1
Level 2
July 22, 2016
Question

Lightbox form AND embedded form on a landing page

  • July 22, 2016
  • 2 replies
  • 2676 views

Is it possible to have the same form embedded on the page and in a lightbox pop-up? This way, the form will pop-up initially, but, if the user doesn't want to fill it out initially, they can still easily fill it out on the page itself. We don't want to have a button that would make it pop-up again, as we don't want them to have an additional click.

2 replies

Frank_Breen2
Level 8
July 22, 2016

The easiest way to achieve this is with 2 forms, you can't easily add the same form twice on a page, then in your program just the 2 forms to the smart list in your smart campaign. See an example here: The TIBCO Blog, I have the pop-up for the new users, but it's also at the bottom of each page.

SanfordWhiteman
Level 10
July 23, 2016

If the idea is that the form is only in one place at a time -- first in the lightbox, then in the document if they close it without filling it out -- you don't need to add the form 2x.  All you need to do is make sure the same form is relocated from the lightbox to the doc.

MktoForms2 :: Return Lightbox to Page demonstrates the approach. There's only one form rendered.  We override hide, so where the modal usually hides itself + the form is removed completely from the DOM, instead the modal only hides itself after the form has been moved back inside its original parent element.

SanfordWhiteman
Level 10
October 26, 2016

Sarah, did my answer not fulfill your requirements as given?

Sarah_Way1
Level 2
October 26, 2016

We actually decided to use 2 forms so we can track the effectiveness of the lightbox vs. the form embedded on the page.

SanfordWhiteman
Level 10
October 26, 2016

OK. But I think Correct Answer should mark the correct answer to the requirements for future searches. Otherwise, people will think this isn't possible when it certainly is.