Button on Popup 1 hides Popup 1 and shows Popup 2.
Button on Popup 2 hides Popup 2 and shows Popup 1.
That works.
What if there are several Popups 1a, 1b, 1c, and Popup 2 is shared.
Is there a way for Popup 2 to know which Popup 1 called it so it knows which one to re-show?
Hi @mybuying
Instead of using actions show and hide, you can use the action set a state.
1.As the type of state select a number.
2.If the states number is 1, show Popup 1a, if the states number is 2, show Popup 1b etc.
3. For popup 2 you may want an easy yes/no state to show or hide it.
The question for you becomes, when do you set these states (setting states is an action you can do if a button is clicked or a popup is opened.
Handy information to make popups and states work:
To make popups show when particular states are true:
a)Create a new event in the workflow section; do when condition is true (where to do this - see screenshot
b) When element Xs state is 1, show popup 1a, hide popup 2.
c) Make sure this workflow is set to run every time instead of just once.
d) You may also need a button to reset the number state to empty.
Happy bubbling. Let me know if you need more help.
:
Hi, @TipLister.
You provided some great information here:
I’m hoping you may understand popups, and reusable elements well enough to help me with a slightly different situation.
In my case, I am using a stack of reusable elements and I need to communicate between them. Obviously, being reusable elements, they don’t know about each other, but I need an action performed in one based on an action performed in another. Here’s the situation:
A reusable popup (let’s call is repopA) contains a reusable element that appears as an icon (let’s call it reiconB). reiconB also contains a reusable popup (let’s call it repopB). What they all have in common is a thing of type Item.
reiconB sits on repopA and when it is clicked, reiconB shows repopB.
If repopB carries through to its normal completion, it sets the status of the shared Item to “done” and hides itself. At this point, I need repopA to hide itself (and possibly do some other work.)
If repopB exits without completing the work to set Item’s status to done, repopA must remain visible.
In repopA, I don’t want hiding to be simply based on the status of Item being done because Item’s status could have been done before repopA was instantiated. repopA should hide only when the status of its Item is changed to done from some other status value or when the user clicks an exit link.
How can I get repopA to recognize when Item’s status is changed to done so it can hide itself?
Hi. it is currently 4am here so my quick help is to link you to this video I recently made for another user. The state I use to communicate between header and popup also works between reusable elements. Let me know if you need further help in a pm.
Regards
Julius