retain form data when reCAPTCHA validation fails

Topics: General
Dec 13, 2012 at 3:10 AM


I have a couple of custom forms with reCAPTCHA. When the reCAPTCHA validation fails, the form data entered by the user is not redisplayed - the fields are blank. Is there a way to retain the data so the user doesn't need to re-enter it?


Dec 13, 2012 at 6:16 PM

It depends on how you are building the form that is processing the request; I'm currently using AJAX to confirm/validate the information; so there's no page refresh - which then keeps everything as it should.

More specific information as to how you are redering it and then handling the validation would be helpful.



Dec 17, 2012 at 1:32 AM

Thanks for your reply fruber.

We are just using the Custom Forms module (Orchard 1.6) with a recaptcha content part attached (from the Anti-Spam 1.6 module).