Forums

DB Field not recording & Captcha validation error

lselbach 02 Jan, 2012
Hi Grey, what´s up!!

Hope your new years eve has been great!!

I installed CF 4, configured form and so on (excellent job on youtube video tutorials, loved the jazz soundtrack).
Then I saw your videos about captcha, started to configure inside form here
http://allbusinessnegocios.com.br/index.php/negocios/cadastro-de-investidor

1. The captcha is working fine. But when I try to make a mistake (as the user will certainly do sometime), it returns the following errors:
- First started with that problem of memory limit, then I installed a plugin and increased to 32MB
http://extensions.joomla.org/extensions/tools/development-tools/18298
- Then it gaves me 500 error
- Then I increased to 128Mb and changed the error to
Erro 324 (net::ERR_EMPTY_RESPONSE)

So I disable the LOOP function on the OnSubmit event? What I should do?

2. I figured out that the field TIPOS (which means types in my language) is´nt recording on DB.
I read something about brackets after the name of the field because it´s a checkbox group, is it correct?

Thanks for your help!
Cheers from Brazil.
Lucas
GreyHead 02 Jan, 2012
Hi Lucas,

Leave the Event Loop setting as the default > On Load as you want it to relaod the form when there is an error. By changing it to > On Submit you ask it to re-submit each time an error is found, this triggers another error check until you run out of memory.

You need to add a Handle Arrays action to handle the arrays returned by a checkbox group or by a multi-select drop-down). This just converts the array result into a string that can be saved.

Bob
lselbach 03 Jan, 2012
Great, Bob!

Leave the Event Loop setting as the default > On Load as you want it to relaod the form when there is an error. By changing it to > On Submit you ask it to re-submit each time an error is found, this triggers another error check until you run out of memory.



The first part works fine, just have a little problem: it fills the email field with this information (not the original e-mail entered):

<script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy42721 = 'ajdfkjasdf' + '@'; addy42721 = addy42721 + 'dd' + '.' + 'com'; document.write('<a ' + path + '\'' + prefix + ':' + addy42721 + '\'>'); document.write(addy42721); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>O endereço de e-mail address está sendo protegido de spambots. Você precisa ativar o JavaScript enabled para vê-lo. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>


You need to add a Handle Arrays action to handle the arrays returned by a checkbox group or by a multi-select drop-down). This just converts the array result into a string that can be saved.



OK, Bob, it worked fine.
Just checked another post: 'Please drag a Handle Arrays action into the On Submit event and move it up before the DB Save action.'

ps: the link submit your story isn´t working
http://www.chronoengine.com/users-stories/submit-story.html

Thanks!!
Lucas
Brazil
GreyHead 03 Jan, 2012
Hi Lucas,

You have the Joomla! Email Cloaking Plug-in enabled and it is trying to cloak the sample e-mail in the ChronoForms validation message. Disable the plug-in temporarily to check this is the problem. If you need the plug-in change the plug-ins order so that Email Cloaking runs before ChronoForms.

NB These are Joomla! plug-ins that you manage from Site Admin | Extensions | Plug-in Manager

Bob
lselbach 12 Jan, 2012
Great Bob!
It was e-mail cloaking.

I have another question, but I´ll open another topic.

Thanks a lot!
Lucas
This topic is locked and no more replies can be posted.