© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
4 replies
Trasek

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.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using `getRawState()` returns an array for FileUpload
FilamentFFilament / ❓┊help
3y ago
Saving an unsaved id using RelationManager
FilamentFFilament / ❓┊help
6mo ago
Using relationManager without panels and resources
FilamentFFilament / ❓┊help
8mo ago