Example of how a form with sub form is set up. This example will have a main data with one record that relates to a list of sub data that all are added to a form. It will show how you can set it of so you can edit it from generated page but also how you can create new pages without generating it and how to add more lines to the data list dynamically.

First of all you have to make sure the form is set up with dataconnect.js in the template. The code here is just what needs to be added using data-name attributes in the form.


Code sample that have main data and list of data.