Maxime
Programmatically fill repeaters in EditRecord page
Yep, it looks like it. Maybe i'm not using the right pattern to begin with ?
I want, from an already existing filament resource, to be able to create items through a HasMany relationship, with a pre-defined repeater of 3 items and some pre filled attributes.
Do you think extending EditRecord suits this ? (I'm doing this right now)
13 replies
Programmatically fill repeaters in EditRecord page
I've tried the
$form->fill()
and the mutateFormDataBeforeFill()
, but my repeated field array just get emptied
Update : i've realised that this is working if i don't use ->relationship()
on my repeater. Any idea on why the relationship would break that ?13 replies