getRawState using at RelationManager?

Is there any possibility to use in custom function in RelationManager:
$data = $this->form->getRawState();
$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
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.
1 Reply
Trasek
TrasekOP4w ago
I think it references the parent relationship, we are in the VIEW element for the element and there we have a “Create” button that creates a modal for creating the relationship. But how then to refer to this form we are in? Ok i found something like that:
$this->mountedTableActionsData[0]
$this->mountedTableActionsData[0]
Want results from more Discord servers?
Add your server