programmatically filling in multiple Repeater entries on create form
Hey,
I have a repeater on "CreateInvoice" page that I want to populate with "expected invoicelines".
I have my repeater setup in "CreateInvoice" page getSteps() method with a relationship to InvoiceLine, but I want to pre-populate the repeater entries with multiple entries that don't exist yet as InvoiceLine. Is there a method that I can manually set multiple repeater rows and their values?
I want to basicly set the entries using an []['repeater_field'=> 'value'] array without them existing in the database yet
1 Reply
Solution
nvm its $repeater->default([
['field' => 'value']
])