Dynamic default repeater fields
For an application I am making a custom field which in essence is a repeater, a model can have custom fields which are configured in the config file. I want to load these fields as default in a repeater, how would I do this dynamically?
I see that there is needed a list instead of an associative array for the default value, this is just somehow not possible I think?
Solution:Jump to solution
The repeater’s schema is just an array of form components- you can load your config and build your array dynamically before assigning it to the form schema.
1 Reply
Solution
The repeater’s schema is just an array of form components- you can load your config and build your array dynamically before assigning it to the form schema.