I have a form :
https://gator1409.hostgator.com/~asgsbxd/index.php?option=com_chronocontact&task=send&chronoformname=CorporateMembership2
It is currently in test mode so you can try to submit a test if you like.
It submits fine except when I turn on "Republish fields if error occured" to "Try to Republish". I then get an error around line 183 of
/home/asgsbxd/public_html/components/com_chronocontact/chronocontact.html.php
The line is:
$MyForm->formrow->html = str_replace('{imageverification}', $imver, $MyForm->formrow->html);
I haven't messed with the code. The moment I turn off Republish, the form submits fine again.
I am running Joomla 1.5.23 with CHRONOFORMS version 3.1. Not sure what other info one might need to debug this problem.... Any help would be greatly appreciated.
https://gator1409.hostgator.com/~asgsbxd/index.php?option=com_chronocontact&task=send&chronoformname=CorporateMembership2
It is currently in test mode so you can try to submit a test if you like.
It submits fine except when I turn on "Republish fields if error occured" to "Try to Republish". I then get an error around line 183 of
/home/asgsbxd/public_html/components/com_chronocontact/chronocontact.html.php
The line is:
$MyForm->formrow->html = str_replace('{imageverification}', $imver, $MyForm->formrow->html);
I haven't messed with the code. The moment I turn off Republish, the form submits fine again.
I am running Joomla 1.5.23 with CHRONOFORMS version 3.1. Not sure what other info one might need to debug this problem.... Any help would be greatly appreciated.
Hi piggeorge,
Can you copy and paste the actual error message please. I suspect that the error is on line 183 of your Form HTML and is probably caused by the commas and/or the $ signs in the Checkbox values. Please will you test removing the commas and replacing the $ signs with the HTML entity $ e.g. $3000
Bob
Can you copy and paste the actual error message please. I suspect that the error is on line 183 of your Form HTML and is probably caused by the commas and/or the $ signs in the Checkbox values. Please will you test removing the commas and replacing the $ signs with the HTML entity $ e.g. $3000
Bob
That was it! The dollar signs ($) in the values of my checkbox form elements were causing the reload problem when the form had an error that is checked on the server side. The only server side checking I do is the anti-spam validation (Image Verification). I changed all the $ to $ and the form reposts all the filled out data correctly. Your beer is on the way!🙂
Oh, I did notice that the offending radio button (upon reload) was not pre-checked. So I went back in and changed all the radio button values to more 'normal' values. IE: "Silver", "Gold", "Platimun". I realized I had made changes earlier to take care of the real description in other JavaScript code so I really didn't need the full description as the value of the radio button.
Everything works great now, thanks a ton for your help.
Oh, I did notice that the offending radio button (upon reload) was not pre-checked. So I went back in and changed all the radio button values to more 'normal' values. IE: "Silver", "Gold", "Platimun". I realized I had made changes earlier to take care of the real description in other JavaScript code so I really didn't need the full description as the value of the radio button.
Everything works great now, thanks a ton for your help.
This topic is locked and no more replies can be posted.
