retain form data when reCAPTCHA validation fails

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

Hi,

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?

Thanks 

Dec 13, 2012 at 7: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.

thanks

 

Dec 17, 2012 at 2: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).

Thanks