Hello everyone.
So i'm working on a form for a client and I've been provided some scripts that generate the form.
The form appears on the page nicely and everything appears to work but the submissions.
My formSubmit event looks like this and it goes through...
MsCrmMkt.MsCrmFormLoader.on('formSubmit', (e) => {
e.preventDefault();
window.formSubmitResult = MsCrmMkt.MsCrmFormLoader.sendFormCaptureToCrm(el.querySelector('form'));
formSuccess();
console.log("MsCrmMkt.MsCrmFormLoader.on('formSubmit') called.");
console.log('result: ', window.formSubmitResult);
}); but window.formSubmitResult outputs:
"Error: form was not recognized as valid for form capturing.
at FormCaptureSendingQueue.sendingCallback (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:290023)
at https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:36078
at M (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:2680)
at new t (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:5913)
at FormCaptureSendingQueue.enqueue (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:36012)
at Function.FormLoaderInternal.sendFormCaptureToCrm (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:38959)
at http://ppe.wpup.lt/wp-content/themes/ppe/assets/js/app.js?ver=1.0.1:30396:58
at Function.FormLoaderInternal.triggerCallbacks (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:37688)
at Function.FormLoaderInternal.trigger (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:37805)
at FormLoaderInternal.trigger (https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.71.2017.0:4:37434)"I've tried adding and removing various attributes i've found in the documentation like
data-no-submit="true" and data-ignore-prevent-default="true" but it doesn't seem to work.
According to client the visits are getting tracked but there are no submissions.
The form can be accessed here: http://ppe.wpup.lt/contact/ , you can fill it with method window.fillForm()
Anybody can help me with this one?