#1084760: Conditional grids with mandatory settings are not respecting conditional context
Update: this is probably more related to the webform clientside_validation addon module, though there is likely still a problem in this module too.
To workaround on the client side, use the jquery_update module and switch to jquery 1.4.4 or higher (did not test with older). Thin in clientside_validation.js, change the following around line 45:
self.validators[f] = $('#' + f).validate({
ignore: ':hidden',
errorClass: 'error',
errorContainer: '#' + errorel,
errorLabelContainer: '#' + errorel + ' ul',
wrapper: 'li'
});The reason you need the jquery update is the :hidden selector in newer versions will match invisible elements as well as input type hidden elements, and thus not run the validator on anything that is not present on the screen.
However, the backend still returns an error on submit.
Comments
Comment #1
Jelle_Sfixed in 6.11, no port yet for 7.x because of #1135998: Warning: array_merge() [function.array-merge]: Argument #2 is not an array in _webform_conditional_possible_trigger_components() (unable to test)
Comment #2
Jelle_STesting revealed our module does it "the right way", meaning hidden required fields are not validated after submission. However, the server-side validation of webform conditional does not let this pass. Is this a bug or does it work by design?
Comment #3
Jelle_SMarking as fixed, feature added in 7.x-1.16