Closed (fixed)
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
Form Validation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2012 at 10:03 UTC
Updated:
17 Jan 2013 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
jelle_sHow have you created the group of checkboxes?
Can you provide me steps to reproduce?
Comment #2
nishyaadi commentedSure :-)
I installed cck and using that I created a field named "Available sectors" in my form. Then I set the type as 'text' and widget as 'checkboxes/radio buttons'. After that I included 5 values in the 'Allowed values' field and set as required. When I'm trying to validate that field using clientside validation it displays the error message "Available sectors field is required." for 5 times. But what I need is to display only one error message for that field("Available sectors") which I created.
Comment #3
jelle_sI tried reproducing the bug, but didn't get it. What version of clientside validation are you using? Have you tried the latest dev version?
Here's how it looks at my end:
Comment #4
nishyaadi commentedYes, I have tried it. I'm using clientside_validation-6.x-1.x-dev version. But it gives 5 error messages in my end.
Comment #5
jelle_sThat's weird,
what version of cck are you using?
Comment #6
Davidovich commentedI have come across a similar issue using the 7.x versions and traced the issue back to using spaces in input names.
Basically, this validates correctly:
This produces 5 error messages:
This is down to the fact that jQuery validate splits the list of grouped fields on spaces, causing them to get all screwed up.
Not sure if this is the same issue you were having, but it seems the same.
Comment #7
jelle_s@Davidovich: You are correct. I see you already created a pull request in their issue queue. Thanks for that! Until that is committed, I can only advise you to use machine readable option keys.
Comment #8
jelle_sWaiting for the pull request...
Comment #9
attiks commentedFYI: https://github.com/jzaefferer/jquery-validation/pull/479 is merged
Comment #10
jelle_sThis is fixed in 7.x, I'm getting js errors in 6.x with practically the same code so I'm not sure why...
Comment #11
jelle_sfound it. fixed in both dev versions.