x

Customer Javascript Form Code Confliction

Hi all,

Quite new to the Weebly Environment and just need some help and guidance with some custom code conflicting with some weeblyJS.

I require to insert this custom for - <form id="mktoForm_1791"></form>

Which is then rendered using the following JS

<script> $.getScript("http://go.expert360.com/js/forms2/js/forms2.min.js",function(){MktoForms2.whenRendered(function(t){(function(t,e){var o=t.getFormElem()[0],r=Function.prototype.call.bind(Array.prototype.slice);r(o.querySelectorAll("[style]")).concat(o).forEach(function(t){t.removeAttribute("style")}),r(document.styleSheets).forEach(function(t){(-1!=[mktoForms2BaseStyle,mktoForms2ThemeStyle].indexOf(t.ownerNode)||o.contains(t.ownerNode))&&(t.disabled=!0)}),o.setAttribute("data-styles-ready","true")})(t),$("input").addClass("wsite-form-input wsite-input"),$("label").addClass("wsite-form-label"),$(".mktoAsterix").addClass("form-required"),$(".mktoButtonWrap").addClass("wsite-button"),$(".mktoButton").addClass("wsite-button-inner").css("border","0px"),t.onSuccess(function(e,o){return t.getFormElem().replaceWith("<p>Thanks for requesting to join our Tax Talent Platform, your details have been shared with Expert360 to get you started.</p>" ),!1})}),MktoForms2.loadForm("http://go.expert360.com","371-GHN-078",1791)});
</script>

The form renders correctly, however, upon inserting data and clicking the "Submit" button, it refreshes the entire page and fails to send the data.

The form data is then added to the URL as a GET method.

Would anyone have some advice what this would conflict with?

Thanks,

Harrison

431 Views
Message 1 of 2
Report
1 REPLY 1
Square

Hi Harrison and thanks for reaching out. If you are looking for code assistance it is always best to post a link to your live site. The community users on here that help out with code will often reference the live site. Thanks! 

429 Views
Message 3 of 2
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.