Show linked doctype form within doctype creation form

Hi, is there any way I could replicate this flow (on desk or using web forms)?

Basically, If I press the blue button, it’s gonna add another section with fields for a new “Person”.

I have tried getting this workflow using table/linked doctypes and selecting “Show full form” but I’d prefer to keep all the fields of all linked doctypes visible at once.

Hope this screenshot helps understand the flow. Thanks in advance.