- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
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!