[Freeform] Sending forms twice bypasses validation of required fields
Posted: 29 September 2007 02:56 PM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2006-10-11

In Freeform 2.5.7, checking for required fields works well only the first time I send a form. I will get the error messages as expected. But if I go back to the form and hit “Submit” once again (without changing anything), validation does not work - I see the success message.

(In this case post-data will be saved and - sometimes - E-Mails will be sent, even if some/all required fields are empty.)

This behaviour seems to be new in Freeform 2.5. If I use Freeform 2.4.2, everything works as expected.

Profile
 
 
Posted: 20 November 2007 01:20 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22

Further to this on 2.57/2.5.8 (although it does say ver .2.5.8 in the settings) wont send emails if you miss a required field. Go back (as it tells you to do) complete the field.

No emails are sent.

I can only get email to work if I complete all required fields the first time.

Profile
 
 
Posted: 20 November 2007 02:23 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

What kind of validation are we talking about?

required="name|email"

or

onsubmit="some_javascript_function();"

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 20 November 2007 04:44 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22
Pie Man - 20 November 2007 02:23 PM

What kind of validation are we talking about?

required="name|email"

or

onsubmit="some_javascript_function();"

In My case I’m using

required="name|email"

Profile
 
 
Posted: 21 November 2007 01:55 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

I cannot seem to replicate this…

What does the code for the notification template look like? Inlcuding From Name, From Email, etc smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 21 November 2007 03:17 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  18
Joined  2007-01-22

I have two forms - it happens on both - here is the shorter form:

{exp:freeform:form form_name="contact_us_form" notify="MY EMAIL ADDRESS" template="contact_us_template" required="name_contact|email_contact|question_contact"}

<label for="textinput">Name:<span class="required">*</span></label><br />
<
input type="text" id="textinput" name="name_contact" size="25" /><br />

<
label for="textinput">Email:<span class="required">*</span></label><br />
<
input type="text" id="textinput" name="email_contact" size="40" /><br />

<
label for="textareainput">Question:<span class="required">*</span></label> <br />
<
textarea id="textareainput" name="question_contact" rows="10" cols="65"></textarea><br />


{if captcha}
  
<span class="formtext">Please enter the word you see in the image:<span class="required">*</span></span><br />
<
label for="textareainput"> </label>  <label for="textareainput"> </label> <br />
{captcha}<br />
<
label for="textareainput"> </label>
<
input type="text" name="captcha" value="" /><br /><br />{/if}

<label for="textareainput"> </label> <input type="submit" value="Submit" /><br /><br />
<
label for="textareainput"> </label><span class="required">*</span>required

{
/exp:freeform:form}

Happy for any of the devs to PM me and have a look at the site in person as well.

Image Attachments
freeform.jpg
Profile
 
 
Posted: 21 November 2007 04:02 PM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Hi Dane,

I think I’ve heard about someone else having this bug in the past. Though maybe only one other person.

Email me at mitchell at solspace.com with EE CP and FTP info. If you’re not comfortable with me logging in and checking out the flow, I understand.

mk

 Signature 

Mitchell Kimbrough

Profile