Menu icon Foundation
Foundation 6 Reveal duplicates content.

I have a modal window opening that has a form from marketo embedded into it. All this works fine, however, if I open the modal, then close it, and reopen it, the content is duplicated. Like, forever. If i refresh the page and launch the modal, it's back to a single instance.

Is there a way to not have this happen?

I've set resetOnClose to true, but that isn't working.

The script looks like:

<script src="//app-sjp.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_0001"></form>
<script>MktoForms2.loadForm("//app-sjp.marketo.com", "123-ABC-456", 0001);</script>

 

Thanks

 

revealfoundation 6modalduplicate content

I have a modal window opening that has a form from marketo embedded into it. All this works fine, however, if I open the modal, then close it, and reopen it, the content is duplicated. Like, forever. If i refresh the page and launch the modal, it's back to a single instance.

Is there a way to not have this happen?

I've set resetOnClose to true, but that isn't working.

The script looks like:

<script src="//app-sjp.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_0001"></form>
<script>MktoForms2.loadForm("//app-sjp.marketo.com", "123-ABC-456", 0001);</script>

 

Thanks