HELP! Exported site code and FORM submission

I’m a web dev and I’m a little perplexed with this…

I’ve exported my website and it’s running on my own server. There is one FORM on the page which submits contact info. I’ve changed the form tag from SJ code to:

<form method="POST" name="form1" action="send-msg.php">

Pretty standard. I also changed the “Send” button to an input type of submit. Easy Peazy…

But when the form submits, it submits WITHIN the container, and not the whole page which causes unwanted behavior.

I know it’s got something do with the the app.bundle.js script tag at the bottom of the page, because if I remove it, the form submits the whole page (not just within the element) - but of course the page doesn’t look right without the app.bundle.js script tag.

Has anyone run into this? Is there a way to make the form submit “normally”?

Thanks

So I figured out that if I remove the parent tag of the form container, it works…???

<div class="ed-element ed-form-container" id="ed-65551585">
</div>

The above is the parent container - if the form block is within it, it doesn’t work correctly (it’s almost like it’s an iframe submitting within the iframe. If I remove that DIV from around the form, the form submits the whole page - weird…?

Thanks for figuring that out for us! Much appreciated.

2 Likes