F
Filament2mo ago
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
1 Reply
Solution
Fally
Fally2mo ago
Ok, apparently I solved it myself. Didn't add my scripts inside @script @endscript tag.
Want results from more Discord servers?
Add your server