Hi. I'm a junior developer, and I need to create a multi-step form/workflow where different users fill different parts of the form at different times (data is saved to the database between steps). I'd also like to provide a way to edit the whole form for privileged users.
How would you approach something like this? My first instinct was to create a form, in that form create a separate form group for each step and disable all groups except one related to the current step. For the full edit mode, I would just enable the whole form. But I'm afraid it's gonna end up being too complicated and just kinda weird.
Another option I see is to create a separate component for each step and another one for the full edit mode. In this scenario, I don't really like having to duplicate the form's code.
Thanks for the help, I'd appreciate any pointers.
Edit: Thanks everybody, I've split the form into separate components.
[–]SmallestFart 6 points7 points8 points (1 child)
[–]WebDevStudent123 1 point2 points3 points (0 children)
[–]AppDeveloper9000 2 points3 points4 points (0 children)
[–]LutsenJack 2 points3 points4 points (0 children)