FilamentF
Filament13mo ago
Trasek

getRawState using at RelationManager?

Is there any possibility to use in custom function in RelationManager:
$data = $this->form->getRawState();


I've got error:

App\Filament\Resources\ContractResource\RelationManagers\ContractRealizationsRelationManager::form(): Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given, called in /htdocs/XXX/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 56


I am trying to retrieve the current form data for adding a new element in a relationship directly from a given parent element.
Was this page helpful?