Hi. The contact form I am using Mollom on is down the bottom of a page.
When someone enters an incorrect captcha entry, the page is reloaded back to the top of the page. So our users think the form has sent, because they don't see the error message (which they have to scroll down to see).
Is there a way I can set an anchor on the page so that mollom will always jump to that anchor?
I contacted the guys at Mollom and they said it would need to be referred to the Silverstripe team.
25 April 2010 at 5:10pm
Yes this is SS issue rather than mollom. The redirection back down to the form on error is part of the core (The mollom validator simply returns pass or fail) so it doesn't handle any redirecting.
If you set $form->redirectToFormOnValidationError(true); it will redirect the user back down to the form. Using that line should work fine in your custom forms. If your using the UserForms module you can't set that property from the CMS so you might have to edit the module.