Multiple Instances of Entity Form I am working on a module with a form that allows multiple "members" to be submitted. The form allows the number of members to be specified, then displays a set of member fields that many times. This is working well, but the set of fields for each member is fixed.

I'm looking at whether it would be possible to turn it into an entity form to allow the set of fields for each member to be configured.

Is it possible for an entity form to display several sets of fields on one form, and have them all submitted together?

Any pointers on how to start?
Here is what I would do:

Create that many entites as you would like to able to submit with entityTypeManager (members)

Create their form objects with EntityFormBuilder-&gt;getForm($entity)

Set out all the elements you don't need (their submit buttons)

Add them to form like this:
$form[$custom_form_id] = array(
'#type' =&gt; 'markup',
'#markup' =&gt; render($created_form),
'#prefix' =&gt; '',
'#suffix' =&gt; ''
);

In your submit, call the children form submit functions.