© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
100 replies
jerry55551

Use Action in custom ViewRecord page

hi there. sorry if this is a poor question, new to Filament and am sorely confused. I have a "ViewEvent" page I created that extends ViewRecord with a custom view and it has been working great as a Livewire component as far as I can tell. I'm using notifications without any issue as well. I see on the docs that using an Action on a Page is already set up for you and you shouldn't have to extend anything but when I try to use a CreateAction, nothing happens. No errors, nothing in console log. I looked at ViewRecord and what it extends and I see that it implements forms but did not find the action implementation, so I added it to myself like the docs say for a normal livewire component and I get:
Declaration of Filament\Actions\Concerns\InteractsWithActions::getMountedActionFormModel(): Illuminate\Database\Eloquent\Model|string|null must be compatible with Filament\Resources\Pages\ViewRecord::getMountedActionFormModel(): Illuminate\Database\Eloquent\Model
Declaration of Filament\Actions\Concerns\InteractsWithActions::getMountedActionFormModel(): Illuminate\Database\Eloquent\Model|string|null must be compatible with Filament\Resources\Pages\ViewRecord::getMountedActionFormModel(): Illuminate\Database\Eloquent\Model

the second I hit the page. i imagine im doing something wrong I'm just not sure what. I'm able to access my record, etc. with no issues on my page otherwise. i feel like im mistaken somewhere since the docs imply this should be ready to roll without me doing anything really.
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
Next page

Similar Threads

Action don't works on custom ViewRecord page
FilamentFFilament / ❓┊help
2y ago
Action in custom page
FilamentFFilament / ❓┊help
17mo ago
How to use all available Tailwind classes in custom ViewRecord page?
FilamentFFilament / ❓┊help
15mo ago
Set record in ViewRecord page
FilamentFFilament / ❓┊help
3y ago