-
Notifications
You must be signed in to change notification settings - Fork 203
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
Wizard breaks if page has no FormBlocBuilder components mapped #314
Comments
Hi, @fmatar. At first I thought this is bug. However after few minutes of digging, I think this behaviour is actually on purpose. What makes this happened is you add a step with empty field to form. Form bloc will ignore the empty field step due to dynamic field bloc generation. Moreover what dose a step with empty field actual means in real world use cases. You are adding an empty field step to form bloc because StepperFormBlocBuilder didn't let you customize with inserting a not stepper page. So as these reason I don't think this is a bug and if you want to trying to add a page between steps. You shouldn't be using StepperFormBlocBuilder you should build your own layout. |
@fmatar Your implementation also makes me thinking, is that first step must be start with zero, or last step must be the position of last step item. The success result page show because the last step |
@aaassseee Thank you for the feedback, I am revisiting the implementation as well, I'll keep you posted! Cheers! |
An easy workaround is to add any blocfield to the filedBlocs array even if it's not used on the step. Not very elegant but it does the job. Looking back at your comment in a real use case:
I hope that makes sense |
I have the same issue. I just want a single page with a text. @aaassseee |
The wizard form doesn't allow processing Widgets that do not contain BlocFields.
I'm trying to add a step to the wizard (for now we'll keep it as text), since the step is purely informational it doesn't contain any blocFields, once this step is reached. Clicking continue will result in the last page of the process. Here's a modified version of the wizard example that explains the issue:
The text was updated successfully, but these errors were encountered: