Form Cleared on captcha fail

apandit 16 Feb, 2012
I have custom form and captcha on it all is working fine, except on fail, I get this message "You have entered a wrong verification code!" and the form is cleared ie blank form and the user has to fill in data again(a pain)

Would appreciate help on how to retain the filled data on the form when captcha fails.

See attached screen shoots.

mfg
GreyHead 16 Feb, 2012
Hi apandit,

In the Show HTML action please set Republish Form Data to Yes (the default setting).

Bob
apandit 17 Feb, 2012
Hello Grey Head

This is already set - see screen shot, however reset and tried again still the same.

mfg
apandit
GreyHead 17 Feb, 2012
Hi apandit ,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
GreyHead 17 Feb, 2012
Hi apandit,

Your Form HTML is missing the 'type' attributes in the input tags. Please change
<input name="m_sname">
to
<input type='text' name="m_sname">
for each of the inputs in your form. ChronoForms uses the type attribute to help it identify the inputs and how to handle them. It's also technically a required attribute for an input tag.

Bob
apandit 17 Feb, 2012
Hello Bob

Worked like a charm - easy when u know how.

thanks for excellent support.

mfg
apandit
apandit 23 Feb, 2012
Hello Bob

Small issue since changing this all works fine except for the dropdown list. This is reset back to default value on error. Any thought.

mfg
apandit
GreyHead 23 Feb, 2012
Hi apandit,

Probably a similar problem. What is the HTML for the select box?

Bob
apandit 23 Feb, 2012
Hello Bob

This is the coding in the html
<select name="k_sex"><option selected="selected">male</option><option>female</option></select>

When I had the type="Text" it would not pass the value {k_sex} in the mail template - ie all the other values were send by the mail template but this remained blank.Once I removed the type = "Text" this worked.

However the old problem of field being reset on error returned

mfg
apandit
GreyHead 23 Feb, 2012
Hi apandit,

Please try putting the values in the options
<select name="k_sex"><option value="male" selected="selected">male</option><option value="female" >female</option></select>

Bob
apandit 23 Feb, 2012
Hello Bob

That worked. The learning is that when u copy from external sources like Dreamweaver, Kompozer etc, such things have to be taken into account.

The best part of Chronoengine is the help we get from Max and yourself.

mfg
apandit
This topic is locked and no more replies can be posted.