terminal42 / contao-conditionalformfields

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

wrong name #73

Closed a-kehr closed 1 year ago

Toflar commented 1 year ago

Can you provide details, please? What's the issue, how can it be reproduced?

a-kehr commented 1 year ago

Ein Beispiel wäre wenn im Formular ein Select-Menü mit Mehrfachauswahl definiert wird. In der Console erscheint folgende Fehlermeldung

Uncaught SyntaxError: Missing initializer in const declaration at new Function (<anonymous>) at toggleFieldset (conditionalformfields.js?v=efb36970:42:18) at conditionalformfields.js?v=efb36970:23:13 at NodeList.forEach (<anonymous>) at init (conditionalformfields.js?v=efb36970:7:63) at HTMLDocument.load (conditionalformfields.js?v=efb36970:102:9)

Es gibt hierzu auch ein Ticket bereits #66

Toflar commented 1 year ago

Die Frage war, was ich tun muss, um das Problem nachzustellen. Schritt für Schritt. Ich habe hier diverse Testformulare mit Mehrfach-Checkboxen und Selects, die alle einwandfrei funktionieren. Die Browser-Info wäre wohl auch hilfreich :-)

a-kehr commented 1 year ago

@Toflar konnte das Problem lösen. Es wurde ein Template angelegt und da war folgender Bereich nicht enthalten. https://github.com/contao/contao/blob/4.13/core-bundle/src/Resources/contao/templates/forms/form_select.html5#L20-L22