Learn how to prevent multiple popup instances by using a reusable object variable and a pass-through condition. This workflow ensures your popup only opens once and resets correctly upon closing.
Chapters
00:00
Introduction
Greeting and overview of the popup solution.
00:04
Variable Setup
00:44
Workflow Logic
01:42
Resetting the Popup
Transcript
Copy
00:00
Hey, Zorin.
00:01
I, hope you're doing well.
00:03
I think I have a solution for you.
00:04
So if I go to preview on name and I press a bunch of times on enter, you can see I only have one instance of the pop up.
00:14
the reason for that is that I created an open popup variable.
00:19
It's an object variable.
00:20
That way I can.
00:23
What is this coming?
00:27
yeah, so then I can reuse it.
00:35
So I can reuse it, you know, change the name and change whether it's open or false.
00:40
So this means I can reuse the same variable, whatever my pop up.
00:44
And then on the workflow, what I have is, the, the first thing I do on enterkey is that I update the name of the popup, in the variable.
00:54
So here I call it Limited Offer.
00:57
And then I have a pass through condition where in order for the rest of the workflow to work, I need the popup name.
01:05
So here I go and get the popup name.
01:08
I need it to be Limited offer and I also need, to be false.
01:14
So it's not open yet.
01:16
And then if that pass through condition, true, and I'll go here and I'll update, I'll update this.
01:27
So the path open.
01:28
So I'll update this variable, the path open and I'll switch it to true, and then it will open the variable.
01:37
So that's why it only opens once.
01:42
Now the one thing that I need to do is just when I close, I need to make sure that when I close this pop up.
01:48
So here, for example, I'll want to reset the variable, so maybe resets the variable value.
02:00
There we go.
02:01
So it will reset to the default value.
02:04
And this is, if I go on here it's saying, let's see.