F
Filament4mo ago
Antea

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
No description
Solution:
nvm its $repeater->default([ ['field' => 'value'] ])...
Jump to solution
1 Reply
Solution
Antea
Antea4mo ago
nvm its $repeater->default([ ['field' => 'value'] ])
Want results from more Discord servers?
Add your server