Validation fails with default message even when all fields are correct,

MaestroC 06 Aug, 2015
How can I troubleshoot validation errors on a very long form? My problem is that the form seems to be validating everything correctly (it notices when an individual question or comment field is left empty) but it always returns the default

"Please fill in all fields before submitting."

at the top of the page even though every single field in the page is filled in. All of the fields are set to be "Not Empty" except for email which is set to be an email field.

I have debug turned on but can't find the error because it is not giving me anything to work with. Any idea what might be causing this validation error or what I can do to find the problem?

Array
(
    [option] => com_chronoforms5
    [chronoform] => SurveyForm
    [event] => submit
    [coachnum] => 1
    [firstName] => asd
    [lastName] => qwer
    [email] => chad@blah.com
    [q1] => No
    [q2] => No
    [q3] => No
    [q4] => No
    [q5] => No
    [s1pub] => Comments go here
    [s1prv] => Comments go here
    [q6] => No
    [q7] => No
    [q8] => No
    [q9] => No
    [q10] => No
    [s2pub] => Comments go here
    [s2prv] => Comments go here
    [q11] => No
    [q12] => No
    [q13] => No
    [q14] => No
    [q15] => No
    [s3pub] => Comments go here
    [s3prv] => Comments go here
    [q16] => No
    [q17] => No
    [q18] => No
    [q19] => No
    [q20] => No
    [s4pub] => Comments go here
    [s4prv] => Comments go here
    [q21] => No
    [q22] => No
    [q23] => No
    [q24] => No
    [q25] => No
    [s5pub] => Comments go here
    [s5prv] => Comments go here
    [q26] => No
    [q27] => No
    [q28] => No
    [q29] => No
    [q30] => No
    [s6pub] => Comments go here
    [s6prv] => Comments go here
    [q31] => No
    [q32] => No
    [q33] => No
    [q34] => No
    [q35] => No
    [s7pub] => Comments go here
    [s7prv] => Comments go here
    [q36] => No
    [q37] => No
    [q38] => No
    [q39] => No
    [q40] => No
    [s8pub] => Comments go here
    [s8prv] => Comments go here
    [q41] => No
    [q42] => No
    [q43] => No
    [q44] => No
    [q45] => No
    [s9pub] => Comments go here
    [s9prv] => Comments go here
    [button8] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
GreyHead 07 Aug, 2015
Hi MaestroC,

That isn't a ChronoForms Error message that I recognise and ChronoForms doesn't have a check for all fields being completed (only individual ones). Have you added it as a custom message somewhere?

Bob
MaestroC 07 Aug, 2015
Yes, that "Please fill in all fields before submitting" is the message I put in the default error message area in the Server Validation segment.
GreyHead 07 Aug, 2015
Hi MaestroC,

OK, then what are the settings you have in the Serverside Validation?

Bob
MaestroC 07 Aug, 2015
Here you go. Everything from my Edit Action window for Server Validation
Action Label: 
ValidateForm

Default error: 
Please fill in all fields before submitting.

Top errors  : YES

Hightlight fields ?  : YES

Not empty: 
  firstName:Please enter your first name
  lastName:Please enter your last name
  q1:Please enter an answer for question 1
  q2:Please enter an answer for question 2
  q3:Please enter an answer for question 3
  q4:Please enter an answer for question 4
  q5:Please enter an answer for question 5
  q6:Please enter an answer for question 6
  q7:Please enter an answer for question 7
  q8:Please enter an answer for question 8
  q9:Please enter an answer for question 9
  q10:Please enter an answer for question 10
  q11:Please enter an answer for question 11
  q12:Please enter an answer for question 12
  q13:Please enter an answer for question 13
  q14:Please enter an answer for question 14
  q15:Please enter an answer for question 15
  q16:Please enter an answer for question 16
  q17:Please enter an answer for question 17
  q18:Please enter an answer for question 18
  q19:Please enter an answer for question 19
  q20:Please enter an answer for question 20
  q21:Please enter an answer for question 21
  q22:Please enter an answer for question 22
  q23:Please enter an answer for question 23
  q24:Please enter an answer for question 24
  q25:Please enter an answer for question 25
  q26:Please enter an answer for question 26
  q27:Please enter an answer for question 27
  q28:Please enter an answer for question 28
  q29:Please enter an answer for question 29
  q30:Please enter an answer for question 30
  q31:Please enter an answer for question 31
  q32:Please enter an answer for question 32
  q33:Please enter an answer for question 33
  q34:Please enter an answer for question 34
  q35:Please enter an answer for question 35
  q36:Please enter an answer for question 36
  q37:Please enter an answer for question 37
  q38:Please enter an answer for question 38
  q39:Please enter an answer for question 39
  q40:Please enter an answer for question 40
  q41:Please enter an answer for question 41
  q42:Please enter an answer for question 42
  q43:Please enter an answer for question 43
  q44:Please enter an answer for question 44
  q45:Please enter an answer for question 45
Empty: 
No spaces: 
Alpha: 
Alpha numeric: 
Digits: 
No Digits: 
Number: 
Email: email:Please enter a valid email
Phone: 
Int. phone: 
Url: 
GreyHead 08 Aug, 2015
Hi MaestroC,

Hmmm - that all looks OK to me.

Just to check - there is an Event Loop action in the On Fail box and nothing in the On Success box?

Bob
MaestroC 08 Aug, 2015
In the OnSuccess part of the validation item I have the DB save and TCPDF actions. I figured they had to be inside there rather than below the Server Validation action otherwise they would run even if the form was not valid. Is that correct or do I need to move them down below?
GreyHead 09 Aug, 2015
Hi MaestroC,

That should be OK - though in general I recommend leaving the On Success boxes empty unless there is a particular need to use them. If you have the Event Loop in the On Fail then putting the other actions after the Server Validation works in the same way.

I don't see what is triggering the error :-( Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

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