terminal42 / contao-conditionalformfields

Display form fields conditionally in Contao Open Source CMS
MIT License
18 stars 13 forks source link

allow inner (non conditional) fieldsets in a conditional fieldset #90

Closed cgoIT closed 1 month ago

cgoIT commented 3 months ago

I often had the situation where I want to use a fieldset in the "body" of a conditional fieldset. This doesn't work because the fieldsetStop widget "closes" the conditional fieldset and so the hiding of error messages (e.g. missing required fields) doesn't work correctly any more. With this PR all fields which are included in the conditional fieldset are catched regardless of inner (unconditional) fieldsets.

aschempp commented 1 month ago

Thank you @cgoIT !