© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
25 replies
jals65

Issue with modal in actions

Hi, I'm building a table with a custom livewire component with table builder in a custom page.

The problem is when I add a action in the table and i want to open a modal with a form to get data before exec the action. It doesn't open the modal.

I link the Custom page and the visual-testing-baselines component files.
project-visual-tests.blade.php734B
VisualTestingBaselines.php2.19KB
visual-testing-baselines.blade.php34B
Solution
Returning all the fields and deleting the getTableQuery() function has already worked for me.
protected function getTableQuery(): Builder|Relation
    {
        if (!empty($this->project)) {
            return VisualTestingBaseline::where(VisualTestingBaselineInterface::PROJECT, $this->project)->selectRaw('*, JSON_LENGTH(screenshots) AS num_screenshots');
        }

        return VisualTestingBaseline::query();
    }
protected function getTableQuery(): Builder|Relation
    {
        if (!empty($this->project)) {
            return VisualTestingBaseline::where(VisualTestingBaselineInterface::PROJECT, $this->project)->selectRaw('*, JSON_LENGTH(screenshots) AS num_screenshots');
        }

        return VisualTestingBaseline::query();
    }
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Modal with dynamic actions
FilamentFFilament / ❓┊help
17mo ago
Dynamic actions with modal
FilamentFFilament / ❓┊help
2y ago
customize actions in modal
FilamentFFilament / ❓┊help
2y ago
Modal Actions
FilamentFFilament / ❓┊help
3y ago