Webform Ui presents a Validation Option Checkbox:Mandatory.
Clientside Validation Webform seems to disregard this.

Also, there seems to be no field available for me to exclude form element IDs from validation.

Comments

attiks’s picture

StatusFileSize
new22.34 KB
new19.43 KB

1/ you mean this isn't working
i1515968-1.png

2/ go to admin/config/validation/clientside_validation
i1515968-1b.png

modulo49’s picture

I'm using 6.x-1.30+2-dev. I have the problem, too, but it's the opposite of the pictures. Clientside validation is requiring fields that are not required. I am using Webform 6.x-3.17+7-dev and Webform Validation 6.x-1.5.

modulo49’s picture

Update: This only seems to be a problem in 6.x-1.30+2-dev if you have it validate on submit.

attiks’s picture

Version: 7.x-1.31 » 6.x-1.x-dev

@modulo49 so in D7 all is fine?

Regarding the D6 problem, "... if you have it validate on submit" can you clarify a bit more, when does it work, doesn't it work?

modulo49’s picture

I don't know about d7, I don't use it. But, I'd guess that the code is similar and causing the same problem. If in my Clientside validation settings I have selected to "Validate fields on submit" it treats all fields as required. If I choose not to "Validate fields on submit" then it works properly.

modulo49’s picture

Even with "Validate fields on submit" turned off, it a user types something into a non-required field and then removes the text, it treats the field as required. But does not have this behavior if the field is simply passed through using tab key.

attiks’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » attiks
Category: feature » bug

@modulo49, you're right, i was able to reproduce the error on the optional fields, will have a look.

attiks’s picture

Fixed in 6.x-1.x (dev version), can you please test it and let me know if everything still works

modulo49’s picture

hey, that works great. Each validation is working just fine (key-up, blur and submit). It's a great module, by the way. Hope that will eventually lead to whatever smilne23 was having issues with.

attiks’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

moving back to D7

barwonhack’s picture

StatusFileSize
new12.87 KB

Hi everybody.
So hey, love the module and appreciate the around this little defect.

Hey Attiks,
re comment 1 part A, The mandatory checkbox is located on the webform editing form (see attached image).
re comment 1 part B, I understand the idea behind excluding specific forms, but having review the jquery.validate documentation, it occurred to me that that the module could possibly offer the ability to exclude specific fields based upon their DOM ID. As I understand it, the module currently only supports excluding specific forms.

attiks’s picture

@smilne23
A/ so the validation isn't working for you: is it always or never validated?
B/ can you open a new feature request for this?

barwonhack’s picture

A) Validation is always validating non-mandatory fields - they are treated as mandatory.
B) Sure - more than happy to do this. I guess I see it as an alternative, more direct, approach to controlling what does (&doesn't) get validated.

attiks’s picture

StatusFileSize
new19.59 KB

A/ I'm not able to reproduce it, did you try the latest dev version?
i1515968-2.png

barwonhack’s picture

I'm on 1.30. Will try 1.31 or dev shortly.

barwonhack’s picture

Status: Active » Fixed

1.31 fixed the defect.
Thanks Attiks. LOVE your work!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

boazr’s picture

has this been broken again in 1.32 ???? (d6)