SOLVED

Form will only open one time in a lightbox

Go to solution
Highlighted
Level 1

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 6

Re: Form will only open one time in a lightbox

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.

View solution in original post

10 REPLIES 10
Highlighted
Level 10 - Community Moderator

Re: Form will only open one time in a lightbox

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

Highlighted
Level 1

Re: Form will only open one time in a lightbox

By clicking the X

Highlighted
Level 10 - Community Moderator

Re: Form will only open one time in a lightbox

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

Highlighted
Level 10 - Community Moderator

Re: Form will only open one time in a lightbox

OS + Chrome version?

Highlighted
Level 1

Re: Form will only open one time in a lightbox

Yes running MacOS Mojave and The latest Chrome which is Version 72.0.3626.109

Highlighted
Level 10 - Community Moderator

Re: Form will only open one time in a lightbox

CrossBrowserTesting recording of form load

Make sure you don't have any browser plugins or anything else interfering with normal operation.

Highlighted
Level 1

Re: Form will only open one time in a lightbox

So after some more testing it looks like it's only not working on a mac in the Chrome browser.

Highlighted
Level 6

Re: Form will only open one time in a lightbox

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.

View solution in original post

Highlighted
Level 1

Re: Form will only open one time in a lightbox

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