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.
12678.png

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