Before form is filled, any function?
Hi,
In a RelationManager:
public function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Repeater::make('config')
Are there any function called before the form is filled? I need to make changes to "config" value
Thanks4 Replies
There is a beforeFill method on the Create and Edit resource classes.
https://filamentphp.com/docs/3.x/panels/resources/editing-records#lifecycle-hooks
Since it's the Relation Manager you need to use the
beforeFormFilled()
methods on the CreateAction
and EditAction
Totally missed the relation manager part. Dennis is correct. Sorry.
Yes, the problem was with the Relation Manager, ok, thanks