Form with sub-forms

Hi, I’m trying to create custom forms with with sub-forms with same data source. I’ve looked at setting custom layout for the form which allowed me to get close but not quite. All I was missing was captions for sub-forms. I have attached an image of what the form should look like. Basically there will be multiple forms tied to the same POJO and once committed, all the forms would commit their data.

Found a solution
but is there a better way to do this?