# How to trigger pop up on Reusable Elements from main page

**URL:** <https://forum.bubble.io/t/how-to-trigger-pop-up-on-reusable-elements-from-main-page/143345>\
**Category:** Need help\
**Created:** [March 26, 2021, 11:33pm UTC](https://forum.bubble.io/t/how-to-trigger-pop-up-on-reusable-elements-from-main-page/143345 "2021-03-26T23:33:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [March 26, 2021, 11:46pm UTC](https://forum.bubble.io/t/how-to-trigger-pop-up-on-reusable-elements-from-main-page/143345/2 "2021-03-26T23:46:15Z")

</div>

Hi there, @partners… the solution involves using a custom state, and I believe this post should help you out…

> [@Showing a popup from a reusable header element](http://forum.bubble.io/t/showing-a-popup-from-a-reusable-header-element/2243/8):
>
> Hey Jen slight_smile You can do this by setting the state on the resuable header. For example, on the page with the button, you can create a workflow which “When favorite button is clicked and current user isn’t logged in”, element actions --\> set state --\> element: header, custom state: popup (for example, type: yes/no), value: yes. Then inside the resuable element header, create a “Do when condition is true (every time)” event which is “When this header’s popup is yes” --\> Show Login/Popup…

Best…  
Mike

---

_[View the full topic](https://forum.bubble.io/t/how-to-trigger-pop-up-on-reusable-elements-from-main-page/143345)._
