Maxime
Maxime
FFilament
Created by Maxime on 10/7/2024 in #❓┊help
Programmatically fill repeaters in EditRecord page
Thank you all for your help, I ended up removing the relationship and using handleRecordUpdate to manage my update
13 replies
FFilament
Created by Maxime on 10/7/2024 in #❓┊help
Programmatically fill repeaters in EditRecord page
Thank you for your snippet, i think this would work great if i need to edit them, unfortunately i'm not sure how to use it to 'create' new repeater items
13 replies
FFilament
Created by Maxime on 10/7/2024 in #❓┊help
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
FFilament
Created by Maxime on 10/7/2024 in #❓┊help
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