Hello!

I have a content type representing a project which has many fields that need to be filled by users over a period of time. I am looking for a means of filling these fields via a series of reduced forms, so that a user isn't presented with every field on content creation (this would be overwhelming). However, I desire the ability for users to access any field when editing the node.

So far I have considered a temporary workaround using webform or entityform to create the reduced forms, then filling the content fields from the form fields with rules when the reduced forms are submitted. This allows me to present the user interface I desire, but files uploaded via fields in the reduced form will essentially have to be saved twice on submit, creating a slow response, redundancy and unnecessary server load.

Has anyone encountered this issue before? Is a better alternative available in a contributed module?

Comments

pixelsweatshop’s picture

Drupal 8 introduced form modes. This allows you to create a different form for eg adding content vs editing content. You could do advanced form and basic form. Or even 7 different forms for each section. Take a look at https://www.drupal.org/project/form_mode_control and https://www.drupal.org/project/form_mode_manager

Tutorial https://buildamodule.com/video/upgrading-to-drupal-8-content-type-manage...

The other option is to creates section in your forms using a tabbed layout using https://www.drupal.org/project/field_group

paperboystudios’s picture

Ok. Thanks.