jamespickard
Calling refreshFormData on repeater clears them
@Leandro Ferreira just checking if you think is worth creating a GitHub issue for? I want to create "next" and "previous" buttons on my form, and I found this solution but it seems unlikely to work if refreshFormData doesn't work for repeater types.
https://github.com/filamentphp/filament/discussions/7716
10 replies
Calling refreshFormData on repeater clears them
That worked but I don't really know why. The only thing I can find about
fillForm
in the docs is in the context of modals.
Is there a bug with refreshFormData? Should I create a GitHub issue?10 replies
How to model one-to-many and allow "many" updates inside the "one" form?
Ah yes, this works well, thank you. I will have to change things a bit since Repeater seems to expect an array of object, rather than an array of strings and sadly the very helpful
mutateRelationshipDataBeforeFillUsing
seems to only get called for Eloquent relations and not when using JSON columns.6 replies
Documentation doesn't actually say what the components do
Similarly, where would I add the action? I would assume the resource's form schema, but that's not right.
https://filamentphp.com/docs/3.x/forms/actions
7 replies
Documentation doesn't actually say what the components do
Another point with the documentation, the examples are often missing context. I get that this is done for brevity, but it's confusing as a new user. I want to create an action, but the examples on the Action page don't actually show where to put the code (or even the import path for Action)
https://filamentphp.com/docs/3.x/actions/overview
7 replies