Show a popup in a reusable element from outside the reusable?

I have a reusable element which is a popup (login). This reusable is included on each page. I want to have various actions that trigger the login popup, e.g. the user tries to do something that requires them to be logged in first.

The problem I’m running into is that when I use the page to show the reusable element, the actual reusable element doesn’t show the popup.

It does work if I set the reusable element to open itself with a workflow every time, but then on the pages it opens itself every time. I only want it to open when the user triggers a certain action.

What I thought I could do:

  • Have the reusable element on the page hidden on page load, then when I show it the popup comes up

What actually happens:

  • When you show the reusable element, the popup is still not opening within the reusable.

Hi there, @brenton.strine… if I understand your post correctly, you should be able to add a Do when condition is true workflow event in the reusable element, set the event to run every time, and add a condition to the event that says only when the reusable element is visible. Then, add an action in the event to show the popup, and you should be good to go.

Hope this helps.

Best…
Mike

1 Like

Awesome! The secret was setting it to “Run every time”… never even noticed that before! Once I did that with the condition you mentioned, it worked!

Thank you!

1 Like

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