# Modal as Global

**URL:** <https://forums.realmacsoftware.com/t/modal-as-global/51240>\
**Category:** Elements\
**Created:** [September 23, 2025, 7:01pm UTC](https://forums.realmacsoftware.com/t/modal-as-global/51240 "2025-09-23T19:01:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrniceguy](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mrniceguy](https://forums.realmacsoftware.com/u/mrniceguy)\
**Post date:** [September 23, 2025, 7:01pm UTC](https://forums.realmacsoftware.com/t/modal-as-global/51240/1 "2025-09-23T19:01:49Z")

</div>

Hi,

I would like to use a global modal via a text link (using $dispatch(‘open\_modal‘ etc.) for showing a privacy policy on all the webpages.

Is this possible?

---

<div class="post-metadata">

**Author:** ![mrniceguy](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mrniceguy](https://forums.realmacsoftware.com/u/mrniceguy)\
**Post date:** [September 26, 2025, 1:43pm UTC](https://forums.realmacsoftware.com/t/modal-as-global/51240/2 "2025-09-26T13:43:08Z")

</div>

More explanation. The text link is also placed in a global footer.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [September 29, 2025, 7:19am UTC](https://forums.realmacsoftware.com/t/modal-as-global/51240/3 "2025-09-29T07:19:43Z")

</div>

Hi @mrniceguy, this is possible but comes with a warning:

⚠ **Warning:** This technique relies on the internal structure of the Modal component and may break in the future if we update how modals work. **Use with caution**.

See [my post here](https://forums.realmacsoftware.com/t/triggering-a-modal-from-a-link/48453/12) for an explanation and example project 🙂

> [@Triggering a Modal from a Link?](https://forums.realmacsoftware.com/t/triggering-a-modal-from-a-link/48453/12):
>
> Yes, you can trigger a modal from a link or button elsewhere on the page, but it does require some custom code. warning Important Note: This technique relies on the internal structure of the Modal component and may break in the future if we update how modals work. Use with caution. Step 1: Find the Modal ID Before you begin, locate the ID of the Modal you want to open. You’ll need to use that in the code examples below. Step 2: Trigger the Modal You…

---

<div class="post-metadata">

**Author:** ![mrniceguy](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mrniceguy](https://forums.realmacsoftware.com/u/mrniceguy)\
**Post date:** [September 29, 2025, 9:07am UTC](https://forums.realmacsoftware.com/t/modal-as-global/51240/4 "2025-09-29T09:07:21Z")

</div>

Thanks Ben!
