# \[SOLVED\] Reusable Element Custom State To Trigger Workflow On Another Page

**URL:** <https://forum.bubble.io/t/solved-reusable-element-custom-state-to-trigger-workflow-on-another-page/25797>\
**Category:** Need help\
**Created:** [March 14, 2018, 2:37am UTC](https://forum.bubble.io/t/solved-reusable-element-custom-state-to-trigger-workflow-on-another-page/25797 "2018-03-14T02:37:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philnauta](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philnauta/32/7808_2.png) [@philnauta](https://forum.bubble.io/u/philnauta)\
**Post date:** [March 14, 2018, 2:37am UTC](https://forum.bubble.io/t/solved-reusable-element-custom-state-to-trigger-workflow-on-another-page/25797/1 "2018-03-14T02:37:14Z")

</div>

I have a reusable element with a text element that when clicked, triggers a custom state to ‘yes’.

I’ve embedded that reusable element on a page and I have a workflow on the page that says “when this reusable element’s custom state is ‘yes’, show the popup”. The popup is on the page, not the reusable element (and it needs to be that way).

I’ve set the workflow to do it “Every Time”. It works the first time I click the text element, but not subsequent times.

Any ideas for how to do this? Thanks! Phil

---

<div class="post-metadata">

**Author:** ![philnauta](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philnauta/32/7808_2.png) [@philnauta](https://forum.bubble.io/u/philnauta)\
**Post date:** [March 14, 2018, 2:44am UTC](https://forum.bubble.io/t/solved-reusable-element-custom-state-to-trigger-workflow-on-another-page/25797/2 "2018-03-14T02:44:47Z")

</div>

Got it thanks to this:

> [@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…

I needed to set the custom state back to no every time the popup is closed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 23, 2018, 2:47am UTC](https://forum.bubble.io/t/solved-reusable-element-custom-state-to-trigger-workflow-on-another-page/25797/3 "2018-05-23T02:47:55Z")

</div>

Closed on May 23, 2018, 2:47am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
