HubSpot Popup forms are great for generating leads on your website, but they can only be shown with handful of triggers provided in the settings. And once visitor closes the popup, it won't trigger again until some time has passed.
Create your Popup form
For this to work, you first need to make sure popup is triggered on the page you want to open it. If you only want the popup to show on click, set the trigger delay on the form settings as high as possible so the popup won't open automatically.
You can do this on Targetig section under Triggers by ticking the After ellapsed time option and setting up the lay to maximum.
Setting up your trigger button
/* Change '#my-button' to query selector to your button class or ID */
<a href="#" class="cta_button" id="my-button">Open popup</a>
To se this in action, click the button below that opens my free marketing tips popup form:
Note that if you have multiple popup forms active on the page, this method will only trigger the first one in the list.