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:Jump to solution
Ok, apparently I solved it myself. Didn't add my scripts inside @script @endscript tag.
1 Reply
Solution
Ok, apparently I solved it myself. Didn't add my scripts inside @script @endscript tag.