I was hoping someone could give me some help with moving from v2.3.5 to v4.0 RC3.5.2. I have a custom html form and custom php to run before email which has worked great in v2.3.5 and Joomla 1.0. I am finally getting to updating our site to Joomla 2.5.8 and Chronoform 4 but am having an issue. I have copied and pasted my original code sections as followed:
v2.3.5 TO v4.0
Form HTML: TO Events OnLoad Custom Code
On Submit code - before sending email: TO Events On Submit Custom Code
The form shows up correctly and seems to function with the dropdowns, however, the after submit code isn't running at all, nor is the error coding in the HTML form.
I am sure I am just missing something simple, so any direction would be greatly appreciated.
Hi sgraypgh,
The syntax for custom code has changed quite a lot since CFv2. Please post your 'On Submit code - before sending email' code here and I'll see if I can work out what needs to change.
Bob
Thanks for your offer to assist. As I stated, the form shows correctly but doesn't run the onsubmit php code. I did create some form fields with the wizard and then placed the onsubmit in the section to run before email and the code runs. I just don't want to have to recreate the form if at all possible. I am sure it is just a minor coding issue and again I appreciate you assistance.
Hi sgraypgh,
I'm very sorry but having taken a look there are about 2000 lines of code in those two files including many DB reads and writes that are not using either Joomla! or ChronoForms methods. I can't check all that in a quick read :-(
I'll hazard a guess that the <form> tags in the form.php file are a part of the problem. If you still have the ChronoForms form tags turned on then the nested tags are illegal HTML and will break in some browsers. If the ChronoForms tags are turned off then the lack of an 'action' URL probably means that it is not submitting anywhere so ChronoForms doesn't see it.
Bob
Please contact me by email or PM if you want me to look at this in more detail as paid work.
Yes it is a very complicated form/onsubmit code. I guess I will continue to mess around with some settings to see what comes of it. Like I said, if I create the form using the easy form wizard, then the onsubmit code runs. It is when I use the other form wizard where it doesn't
Hi sgraypgh,
I'm not sure why changing the Wizard would make a difference, the Easy Wizard is a front-end for the series of actions you see in the normal Wizard. The only real difference is that a Debugger action is added to the form.
Bob