I have been testing a webform and can see it is not redirecting once it is submitted. I am receiving the emails to say the form has processed but it just hangs at the end - https://grace-loans.treepl.co/contact-grace-loans.
Going back and checking my other live sites it is happening on all of them. What is happening here?
I’m not sure.
I can see there is a javascript error occurring: Uncaught TypeError: Cannot read property 'length' of undefined
But not sure why or how to resolve it.
Yeah, we have fixed returning property names in their native case in json response. So that’s why current js implementation that rely on lower-cased property names are stopped working. Sorry for that.
Example of json response:
Thanks @vlad.z
I managed to get this working again, however, there was a bit of confusion because the error response when the form is correct is Errormessages (title case) while when it’s incorrect it’s ErrorMessages (camel case).
Would be good to make these consistent to avoid confusion.
So for @SiroccoDigital (and others), the previous javascript, wherever there is a formResponse path (ie: formResponse.errormessages) now needs to be updated to correct case as per the JSON response, ie: formResponse.ErrorMessages.