Good day,
I am developing a form with Webform Add More and my client has requested that all elements in all fieldsets are required. I have 11 products (fieldsets) and if I set them all to be mandatory and fill only five products, validation will not let the form pass and demands that the remaining six products will be filled also. How could I ignore required fields if fieldset is hidden. I tried working my way through JS but obviously that doesn't work when validation is managed with PHP. I know it must be hooked via webform validation, but I printed the whole submitted webform and found no difference between an element that is in a "visible" fieldset compared to an element that is in a "hidden" fieldset.
Comments
Comment #1
daniel wentsch commentedI'm looking for just the functionality that Webform Add More seems to provide but I was wondering exactly about this, e.g. how it deals with required fields inside optional additional fields.
Is this still an issue?
Thanks for clarifying.
Comment #2
kyleheney commentedI'm also looking for this functionality. Basically, I'd like Fieldsets to work like Conditionals and ignore required fields if they are hidden. Once expanded, they are required. Conditionals does this, but it involves a lot more work to do it. I think the Fieldsets should provide the same functionality.
Comment #3
plinto commentedHaving the same problem
Comment #4
bellesmanieres commentedBranch 7.x-2.x-dev should be able to cope with that, we just need volunteers to help test it.
Comment #5
bellesmanieres commentedComment #6
joshuautley commenteddev version 2 tested and working
Comment #7
bellesmanieres commented