© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
19 replies
Flo

Modal does not work in a Custom Page

Hello, I am building a custom page but nothing happens when I click on the column action :
/* @method Server getRecord() */
class SoftwareServer extends Page implements HasActions, HasTable
{
    use InteractsWithRecord, InteractsWithTable;

    protected static string $resource = ServerResource::class;

    public function mount(int|string $record): void
    {
        $this->record = $this->resolveRecord($record);

        static::authorizeResourceAccess();
    }

    public function table(Table $table): Table
    {
        return $table
            ->query(Software::queryForSoftwares($this->getRecord()))
            ->columns([
                TextColumn::make('name'),
            ])
            ->actions([
                Tables\Actions\Action::make('test')
                    ->label('Test')
                    ->form([
                        TextInput::make('name'),
                    ])
                    ->action(fn (array $data) => dd($data)),
            ])
            ->paginated(false);
    }
}
/* @method Server getRecord() */
class SoftwareServer extends Page implements HasActions, HasTable
{
    use InteractsWithRecord, InteractsWithTable;

    protected static string $resource = ServerResource::class;

    public function mount(int|string $record): void
    {
        $this->record = $this->resolveRecord($record);

        static::authorizeResourceAccess();
    }

    public function table(Table $table): Table
    {
        return $table
            ->query(Software::queryForSoftwares($this->getRecord()))
            ->columns([
                TextColumn::make('name'),
            ])
            ->actions([
                Tables\Actions\Action::make('test')
                    ->label('Test')
                    ->form([
                        TextInput::make('name'),
                    ])
                    ->action(fn (array $data) => dd($data)),
            ])
            ->paginated(false);
    }
}


And the associated view:
 <x-filament-panels::page>
    {{ $this->table }}

    <x-filament-actions::modals/>
</x-filament-panels::page>
 <x-filament-panels::page>
    {{ $this->table }}

    <x-filament-actions::modals/>
</x-filament-panels::page>


Why ?

In the browser console, an ajax call to the /livewire/update route appears correctly
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

Opening a modal in a custom page
FilamentFFilament / ❓┊help
4mo ago
Filling data in custom forms on a custom page does not work
FilamentFFilament / ❓┊help
10mo ago
Action does not open a custom modal
FilamentFFilament / ❓┊help
3y ago
Opening modal from a custom page
FilamentFFilament / ❓┊help
2y ago