I am building functionality where a user clicks a button to learn more, this will bring the user to an external page on an affiliate website. I want to display a popup before sending the user so they know where they are being sent easily.
Ideally I want my popup to open and say you’re going to XYZ website to learn more, have a 3 second delay, then open the link in a new tab.
But, when I add any delay before opening the link it won’t actually go. I know I could skip the popup completely and it works fine. But checking, does anyone have any good workarounds for this?
@adamhholmes appraoch should work pretty well, i would additionally consider to make the popup an reusable elemnt if you require to do that action more often on that page
I did try that and unfortunately the same thing is happening because it has a delay and not a direct button click to open an external link.
I can have it open in the same window no problem after the delay though. Just when I want to open it in a new tab. My understanding is it’s due to popup blockers.
You need to search for the action open external website, you are probably using go to page or something? If it still doesn’t work please share a screenshot of your workflow
Add custom state to the popup with type number
When you open the popup set the state to whatever number, for example 5
Add do while true workflow to decrease the number every 1 second -1. The last step of the do while true is go go to external site when the number is 0 and hide the popup in the same workflow.
You can also show the number inside the popup referencing the state