Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent Fieldset Bug #6

Open
bb-mt opened this issue Mar 1, 2021 · 5 comments
Open

Parent Fieldset Bug #6

bb-mt opened this issue Mar 1, 2021 · 5 comments

Comments

@bb-mt
Copy link

bb-mt commented Mar 1, 2021

Guten Tag,
bin auf einen Bug gestoßen.

Contao 4.9.12

Folgendes Formular:
Es gibt ein Fieldset Zimmer in diesem liegt ein Selectfeld mit der Zimmerauswahl. Dann folgt das Personen Fieldset das duplizierbar ist.

  • Fieldset Zimmer
    • Zimmerauswahl
    • Fieldset Person (duplicate)
      • Felder

Wenn nun die Seite durch einen Fehler (Formular konnte nicht gesendet werden) neu geladen wird, erscheint vor jeder duplizierter Person das Zimmer Fieldset mit Zimmerauswahl.

@bb-mt
Copy link
Author

bb-mt commented Mar 3, 2021

Guten Tag nochmal,

gibt es hierfür einen Quickfix oder ein naheliegendes update? Sry für den Doppelpost - ich muss das Projekt für das ich diese Erweiterung benötige jedoch in den nächsten beiden Wochen fertigstellen.

@fritzmg
Copy link
Contributor

fritzmg commented Mar 3, 2021

It would not be trivial to solve this and we currently have no projects where we actively work with this extension, so there won't be an update anytime soon.

I suspect the nested fieldsets are the problem. Try moving the Person fieldset out of the Zimmer fieldset.

@bb-mt
Copy link
Author

bb-mt commented Mar 3, 2021

Thanks for your reply and sorry for posting in german.

Yes the nested Fieldsets are the Problem (tested every way possible) - But i need those because i have to enable multible Rooms

Fieldset Zimmer 1
Zimmerauswahl 1
Fieldset Person1,2,3,4, (duplicate)
Felder

Fieldset Zimmer 2
Zimmerauswahl 2
Fieldset Person1,2,3,4, (duplicate)
Felder

usw

because i cannot duplicate both - Rooms & Persons - i planned to use the extension ConditionalFormfields. (to hide them if not needed)

Thank you anyway!

@fritzmg
Copy link
Contributor

fritzmg commented Mar 3, 2021

Just do it without the Zimmer fieldset? Why do you specifically need that fieldset? Just for optical reasons in order to have a headline for that section? You could do that with the explanation field in the form generator instead.

@bb-mt
Copy link
Author

bb-mt commented Mar 3, 2021

more or less for optical Reasons. I want to hide Zimmer 2 , 3 and 4. With the Button "weiteres Zimmer hinzufügen" and i think ConditionalFormField Extension requires Fieldsets for that. (cannot see the "nur mit erfüllter Bedingung anzeigen" anywhere else)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants