Jan 11th, 2012, 9:21 AM
(This post was last modified: Jan 12th, 2012, 10:08 AM by michatmaster7.)
New idea!
This may be related to my validation script.
The fields good_sam_member and escapees_member are checkboxes (see my previous reply). Can you do an if statement like that? Or does the value have to be "checked" or something? It's happening now to almost all my checkboxes with only one option that have an if statement.
At least I've narrowed it down a little.
Update: I have reproduced the error message by NOT checking the checkboxes in question, then submitting the form.
This is definitely a validation issue. I changed the validation script to:
But got the same error message. Actually, the error message references line 119, instead of 114, which is to be expected.
I'm guessing I simply can't use validation on a checkbox? Or at least, not this type of validation.
EDIT: And this seems odd, because I KNOW I had this validation in place while using the previous version of the core.
This may be related to my validation script.
Code:
$rules[] = "if:good_sam_member=yes,required,good_sam_number,Please enter your Good Sam MEMBERSHIP NUMBER.";
$rules[] = "if:escapees_member=yes,required,escapees_number,Please enter your Escapees MEMBERSHIP NUMBER.";
The fields good_sam_member and escapees_member are checkboxes (see my previous reply). Can you do an if statement like that? Or does the value have to be "checked" or something? It's happening now to almost all my checkboxes with only one option that have an if statement.
At least I've narrowed it down a little.
Update: I have reproduced the error message by NOT checking the checkboxes in question, then submitting the form.
This is definitely a validation issue. I changed the validation script to:
Code:
$rules[] = "if:good_sam_member!=,required,good_sam_number,Please enter your Good Sam MEMBERSHIP NUMBER.";
$rules[] = "if:escapees_member!=,required,escapees_number,Please enter your Escapees MEMBERSHIP NUMBER.";
But got the same error message. Actually, the error message references line 119, instead of 114, which is to be expected.
I'm guessing I simply can't use validation on a checkbox? Or at least, not this type of validation.
EDIT: And this seems odd, because I KNOW I had this validation in place while using the previous version of the core.