Haydra
form schema modify
Hello guys
$testField =
TextInput::make('first_name')
->maxLength('64')
->required();
dd($testField->getId());
i'm trying to access the input before rendering it in the browser
but getting this error
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
is there anyway to access field properties before ?
2 replies
filter input fields
Hello guys
i'm trying to make forms reusable by many relation managers without rewriting them
and made this, the method works fine for table columns but for the form it always throw this error
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
i attached the code, thank you any help will be appreciated
1 replies
Replicate Action updating cloned record
Hello Guys
i added a form to the replicate action everything is fine, but the problem is that the cloned record, is updating too.
province_short is foreign key so it's relation, only province_short is updating at the cloned record.
thanks in advance
Tables\Actions\ReplicateAction::make()
->excludeAttributes(['province_short', 'updated_at'])
->beforeReplicaSaved(function (Model $replica, $data, $record): void {
$replica->fill($data);
})
->form(self::formComponents()),
2 replies