The values manager wraps 4 dynamic forms each with its own datasource. The last form is the only form that has the JSON form validation. Some further reading of the documentation uncovered the following
I attempted to have all the forms bound to the same datasource however this resulted in all the tabbed forms containing all the fields assoc with the datasource on each tabbed form. So I ended up with 4 tabbed forms with the same fields rather than 4 tabbed forms with each tab displaying it own fields. I hope thats sounds clear.
If you’re splitting a form across multiple tabs while sharing a DataSource, each form needs to have setFields() called with the list of fields that should appear in that form. Otherwise, they will all show all fields from the DataSource - there is no way for them to know how you intended to split the fields.
When I attempt .setFields on the dynamic form I get the following
The method setFields(FormItem…) in the type DynamicForm is not applicable for the arguments (DataSourceEnumField, DataSourceTextField, DataSourceTextField, DataSourceTextField, DataSourceTextField, DataSourceTextField, DataSourceTextField)
Apologies for the lame questions. I am trawling the showcase code attempting to clarify in my head the relationship between datasourcefields and formitems. Can you point me in the right direction docs or sample code please. Thankyou for your prompt responses
The set of FormItems you specify correspond, by name, to DataSourceFields. The ones you specify inherit DataSourceField settings like “title” and override any properties you specifically set on the FormItem. The items you specify on the DynamicForm are the only ones that appear unless you setUseAllDataSourceFields(true).