© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
giro

Custom field Open Modal Form

I create a custom field

class FeaturedImage extends Field
{
    protected string $view = 'forms.components.featured-image';

    public function editAction(): Action
    {
        return Action::make('updateAuthor')
            ->form([
                Select::make('authorId')
                    ->label('Author')
                    ->options(User::query()->pluck('name', 'id'))
                    ->required(),
            ])
            ->action(function (array $data): void {
            });
    }
}
class FeaturedImage extends Field
{
    protected string $view = 'forms.components.featured-image';

    public function editAction(): Action
    {
        return Action::make('updateAuthor')
            ->form([
                Select::make('authorId')
                    ->label('Author')
                    ->options(User::query()->pluck('name', 'id'))
                    ->required(),
            ])
            ->action(function (array $data): void {
            });
    }
}
`
Button render correct but modal not open? I use this button on a form
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

open modal custom field
FilamentFFilament / ❓┊help
2y ago
Open another form modal from a form modal
FilamentFFilament / ❓┊help
10mo ago
Custom form field
FilamentFFilament / ❓┊help
2y ago
Custom Form Field
FilamentFFilament / ❓┊help
2y ago