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

Is there a way to nested form flow? #411

Open
michalpruszynski opened this issue Feb 23, 2023 · 2 comments
Open

Is there a way to nested form flow? #411

michalpruszynski opened this issue Feb 23, 2023 · 2 comments

Comments

@michalpruszynski
Copy link

I need to make 3 step flow, but in every step it get another 3 steps. So,
Step1:
step1.1
step1.2
step1.3
Step2:
step2.1
step2.2
...

Is this possible?

@craue
Copy link
Owner

craue commented Feb 24, 2023

No, nested flows aren't supported.

refs #111, #265

@michalpruszynski
Copy link
Author

Okay, thanks @craue for quick reply.

I've found weird thing with adding a collection type with 'allow_add'.

When im adding a {{ form_row(form.answer.vars.prototype) }} in twig it renders fine, but when i want to use back button - it renders another time, so i've got fields from step 1 and the same fields from step 1 but empty.

When im not calling vars.prototype in twig it doesn't show any field and dumping form returns 0 children.

How is this possible?

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