Forums

Strange form behaviour on submit

antigeek 12 May, 2017
Hello
We have an issue with a form after recently updating a Joomla site and components.
Basically when you submit the form it reloads the entire webpage where the thank you message would usually go?

It seems to be a conflict of some sort with Jquery, however we do use jquery easy and the setup is the same as other sites where it works fine. I have tried all sorts of workarounds on this but I am running out of ideas.

The error displaying in Chromes console is:


jquery.min.js:4 Uncaught TypeError: initModals is not a function
at HTMLDocument.eval (eval at <anonymous> (jquery.min.js:2), <anonymous>:5:228)
at i (jquery.min.js:2)
at Object.add [as done] (jquery.min.js:2)
at n.fn.init.n.fn.ready (jquery.min.js:2)
at eval (eval at <anonymous> (jquery.min.js:2), <anonymous>:5:160)
at eval (eval at <anonymous> (jquery.min.js:2), <anonymous>:21:288)
at eval (<anonymous>)
at jquery.min.js:2
at Function.globalEval (jquery.min.js:2)
at text script (jquery.min.js:4)

Anyone able to shed some light on this for me?
GreyHead 12 May, 2017
Hi antigeek,

I don't immediately recognise initModals() from the ChronoForms code. Please post a link to the form so I can take a quick look.

Bob
antigeek 16 May, 2017
Hi Bob

Sorry to not respond sooner I have been quite ill
Ive sent you a pm with details.

Thank You
GreyHead 16 May, 2017
Hi antigeek,

I've no idea - I don't think this is a ChronoForms problem directly, more about the way the page is loading. I found this page which might help.

I see file names like this /media/jui/js/bootstrap.min.js?58660a3ac5c223c38efcf144ac6dde21 which suggest that you may have some kind of JavaScript compression running? If you do please try disabling it and see if that fixes the problem.

I also noticed that after submission the page has an iFrame that seems to be re-loading a part of the page inside itself??

Bob
antigeek 18 May, 2017
Ok I will take a look at that and the template structure....
It was an Joomla 1.5 old site that we updated the template to work with Joomla 3 so I'm guessing there is something in there that shouldn't be.

Will let you know how I go!

Thanks again
This topic is locked and no more replies can be posted.