© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Wirkhof

How to access $form in Forms?

This code is not working:
Forms\Components\Actions::make([
    Forms\Components\Actions\Action::make('customstuff')
        ->action(function ($form) {
            dd($form); // doesn't work; returns null
        })
]),
Forms\Components\Actions::make([
    Forms\Components\Actions\Action::make('customstuff')
        ->action(function ($form) {
            dd($form); // doesn't work; returns null
        })
]),


I want to be able to access stuff like
$form->getRecord()->id
$form->getRecord()->id
in action(). How to do that?
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

In Form Builder, how to listen for input from forms?
FilamentFFilament / ❓┊help
2y ago
public access forms
FilamentFFilament / ❓┊help
2y ago
How to access form state in Custom Livewire component
FilamentFFilament / ❓┊help
5mo ago
How to access form component record in ->when fn?
FilamentFFilament / ❓┊help
2y ago