Form will only open one time in a lightbox | Community
Skip to main content
Pat_Coyne
Level 2
Feb 13, 2019 8:12 PM UTC
Solved

Form will only open one time in a lightbox

So when I click on the Request Measurement button on this page the for will open in a light box but if I close it and try to reopen it the (<form id="mktoForm_1640"></form>) html will be stripped out.

Here is the URL: https://lp.datacolor.com/ITMA-2019.html

Any help is appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Dave_Roberts
Dave_RobertsAccepted solution
Level 10
Feb 14, 2019 12:39 AM UTC

Hey Pat-

It looks like you're running Bootstrap4 on this template and it might make more sense to leverage Bootstrap for the modal part and just put your form into that instead. Here's a link to more info on the Bootstrap modal: https://getbootstrap.com/docs/4.0/components/modal/ - there's copy/paste code there. This'll divorce the functionality of the lightbox and the form so you're more able to control from the modal (content/styling) without any kind of form (script) conflicts -- and it might help control the width of the lightbox as well.

10 replies

Dave_Roberts
Dave_RobertsAccepted solution
Level 10
Feb 14, 2019 12:39 AM UTC

Hey Pat-

It looks like you're running Bootstrap4 on this template and it might make more sense to leverage Bootstrap for the modal part and just put your form into that instead. Here's a link to more info on the Bootstrap modal: https://getbootstrap.com/docs/4.0/components/modal/ - there's copy/paste code there. This'll divorce the functionality of the lightbox and the form so you're more able to control from the modal (content/styling) without any kind of form (script) conflicts -- and it might help control the width of the lightbox as well.

Translate
Pat_Coyne
Pat_CoyneAuthor
Level 2
Feb 14, 2019 4:17 PM UTC

Thanks Dave, this did the trick and was an easy fix.

Translate
SanfordWhiteman
Level 10
Feb 14, 2019 4:27 PM UTC

I still see no evidence that the native lightbox has any problem on that platform.

Translate
SanfordWhiteman
Level 10
Feb 13, 2019 8:21 PM UTC

If you close it after filling it out? Or close it by clicking the ⓧ?

Translate
Pat_Coyne
Pat_CoyneAuthor
Level 2
Feb 13, 2019 8:26 PM UTC

By clicking the X

Translate
SanfordWhiteman
Level 10
Feb 13, 2019 8:38 PM UTC

In what browser (include browser version and OS)? This isn't expected behavior when merely closing the lightbox.

Translate