terminal42 / contao-conditionalformfields

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

Form with errors is not showing fieldsets according to selection #81

Closed falkgeist closed 7 months ago

falkgeist commented 11 months ago

If a form with conditional fieldsets is reloaded with errors, the fields on which the fieldset listens might still be filled/selected, but the corresponding fieldset is not shown accordingly.

In my instance this was the case with a radio ('Yes'/'No') and a fieldset containing a <input type="tel"> (and of course a submit button).

I selected 'Yes', got the input, typed some letters (not numbers), sent the form, the page was reloaded with the page title (in the tab) saying "Das Formular konnte nicht gesendet werden" (german for "Form could not be sent") and the fieldset was hidden.

Are the conditions possibly only checked on change, not on load?

aschempp commented 7 months ago

I'm unable to reproduce this in the latest release (3.1.0). The issue might have been fixed in the changes in this release.