Forums

Form is empty after entering wrong captcha

analographi 02 Sep, 2009
Hi,

The form is empty after entering wrong captcha. That is not very userfriendly...

I found an old thread about that from 2007, but rekon that this doesn't apply anymore.. and anyways I don't understand the solution provided there.

What can I do so that the for does not go empty if the user enters a wrong captcha?
iamdavinci 02 Sep, 2009
Hello,

Click on the blue link for the form you are using.

You will see all the tabs for the form. The one tab you want is the General tab/Main Settings section.

Look towards the bottom and you will see Republish fields if error occured - it is the sixth entry from the bottom. Make sure that you select Try to republish and also check the next filed Renew Form Instance On Submit and make sure that is selected with Same Instance.

Click Save.

Hope this helps.

RM
analographi 02 Sep, 2009
Thank you for your help

I ticked those options now, but the form still turns empty on wrong captcha.

I use the chrono module, by the way
GreyHead 05 Sep, 2009
Hi analographi,

Please check that the republish is working *without* the module by opening the form from the link in the Forms Manager. This should be OK. If not then there is probably a JavaScript conflict with something else on your site (or you don't have 'Try to Republish' turned on).

Bob
analographi 05 Sep, 2009
I have tested it without being a module.

The name, email and subject now remain on wrong captcha, but the message in the text field is gone.

The text field also has a different style than all other fields on my page. maybe there is a connection?
GreyHead 05 Sep, 2009
Hi analographi,

Possibly - please post the form html for the textarea.

Bob
analographi 05 Sep, 2009
Here is the code of my form:

<div class="form_item">
  <div class="form_element cf_heading">
    <h3 class="cf_text">Please use this form to contact me</h3>
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Name:</label>
    <input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_1" name="Name" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Email:</label>
    <input class="cf_inputbox required validate-email" maxlength="150" size="30" title="" id="text_2" name="Email" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Subject:</label>
    <input class="cf_inputbox required" maxlength="250" size="50" title="" id="text_3" name="Subject" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textarea">
    <label class="cf_label" style="width: 150px;">Message:</label>
    <textarea class="cf_inputbox required" rows="10" id="text_4" title="" cols="50" name="Message" 
</textarea>
    
				
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_captcha">
    <label class="cf_label" style="width: 150px;">Enter the code:</label>
    <span>{imageverification}</span> 
    
    </div>
  <div class="cfclear"> </div>
</div>

<div align=center; class="form_item">
  <div class="form_element cf_button">
    <input value="Send" name="button_6" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>


By the way. I have spent an hour or so trying to get the text field use the same css style as the input fields. I had no luck.
GreyHead 05 Sep, 2009
Hi analographi,

The text area tag is missing a > after name="Message"
<textarea class="cf_inputbox required" rows="10" id="text_4" title="" cols="50" name="Message" >
</textarea>

Bob
analographi 06 Sep, 2009
Hi,

That was just a mistake when copying the code into the thread here. I forgot one part of it and then copied the rest and accidentaly l skipped that tag.

It's there in the original. It can't be the cause.
GreyHead 06 Sep, 2009
Hi analographi,

Hmmmm . . . I pasted your form HTML into a new form, fixed the missing > and it works perfectly.

Bob
analographi 06 Sep, 2009
! thank you!

My bad, I misunderstood your first post I thought you said the whole "</textarea>" was missing. On second read, how could I🙂

Thank you. It works now.

Could you maybe give me a hint on how I can change the style of that textarea? The other form elements follow my templates css where I edited the "input" class, but not the textarea.
GreyHead 06 Sep, 2009
Hi analographi,

The easy way is to add 'textarea' to the tag list for that css.

Bob
IQUK 03 May, 2010
Hi

My message when the captcha is input incorrectly shows in the normal link of the form but not in the module

HELP!

regards
Wade
This topic is locked and no more replies can be posted.