© 2026 Hedgehog Software, LLC

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

Help with opening modal in Page

Hi, I have a Resource Page I made and I'm trying to add a modal to it but I can't seem to open it using $dispatch. It says $dispatch is not defined. Any idea on how to trigger it? I have a <script> tag inside the page where I have my custom js from which I want to trigger the modal. I've used the info in the docs, if I use a button to trigger it like in the first example everything is ok, just javascript dispatching not working.
Solution
Ok, apparently I solved it myself. Didn't add my scripts inside @script @endscript tag.
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Opening a modal in a custom page
FilamentFFilament / ❓┊help
4mo ago
Opening RelationManager in page rather than modal
FilamentFFilament / ❓┊help
3y ago
Opening modal from a custom page
FilamentFFilament / ❓┊help
2y ago
Opening a modal with create
FilamentFFilament / ❓┊help
2y ago