Hello there,
I am currently planning to develop an app and wondering about best practice handling different form options. I will shorty explain:
Use case:
A user can create a project and select a project type. Depending on the type of project, there is a corresponding form collecting information about the project. The right form for each project type should be displayed depending on the project type. There will be a create, show and edit page for the form. It is likely that the number of project type options will increase in the future.
Now my question:
-
Is it good practice to create a section on a single page for each form variant and then hide and display sections depending on the selected project type. What other options are there? There will be at least 5, but not more than 20 different form sections, 1 active at a time.
-
What options are there to create (and style) a form template that can be reused when creating a new form variant? Is this a usecase for a component or is it easier to just copy the whole section.
Thank you in advance for your help,
Jakob