Forums

wrong captcha

tullski 07 Oct, 2011
Hi,

I implemented a captcha code due to spam attacks.
The captcha is working, only problem is that my form is far at the end of a long text.
When someone fills out the form, with the wrong captcha code, the user sees only the top the page not the error code of the captcha at the end of the text.
Also the former entered emailadress is filled with the protected js code from joomla.

Any ideas who to overcome these problems?

Thanks
t
GreyHead 07 Oct, 2011
Hi tullski ,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

I think that both versions of ChronoForms show the Captcha error message at the top of the page by default.

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
tullski 07 Oct, 2011
Thanks for your rapid response Greyhead.

I am using joomla 1.7 and CF 4.0 RC2.0 included via plugin V4 RC2.0.

The changing of the plugin order doesnt change anything. The Problem is the joomla email cloaking plugin. When disabled everything is fine.

But how can i make the page scroll down to error in the form?
In the On SUbmit Box, i have the Check captcha.
In the OnFail Box there is the EventLoop.
I tried after the Event Loop(Quit next action set to NO), the Redirect User to an anchor next to the form.
But this doesnt work out.

ANy other possibility to redirect to the an anchor next to the form, without loosing the inserted values of the form?

thx
t
GreyHead 07 Oct, 2011
Hi tullski,

Sorry, I misread your original post :-( I'm not sure that you can easily redirect but you can add a system message. Add a Custom Code action in the On Fail box before the Event Loop:
<?php
$mainframe =& JFactory::getApplication();
$mainframe->enqueuemessage('Oops thre was a problem with the form, please scroll down to correct it');
?>

There's also an option to have the Submit URL of the form set to the Form URL rather than returning to the article URL if that helps.

Bob
tullski 07 Oct, 2011
Hi Greyhead,

maybe there is a better solution with submit Url.
Maybe there is the possibility to work with an anchor that jumps to the #form, cause its a long way to the bottom
:)
Thx
t
elehost 16 Nov, 2011
I am also having the same problem.

Has any solution been found to get the form to go to a anchor when there is an error?

I ended up having to use the submit url hack to submit to the form with the querystring to get it to process:

i.e. I added ?chronoform=OrderForm&event=submit

It would be so great if there was the ability to set a anchor to this querystring to avoid this extra step as I would rather remain in the page.
This topic is locked and no more replies can be posted.