I have Premium Buttons on Elementor. I want one of those buttons to open the Typeform in a popup window. How can I achieve that?
Best answer by mathio
View originalI have Premium Buttons on Elementor. I want one of those buttons to open the Typeform in a popup window. How can I achieve that?
Best answer by mathio
View originalHello
I am not familiar with this Wordpress plugin, however based on their docs you should be able to define custom onClick event.
In the onClick event you need to use custom JavaScript code to open your popup - like this:
window.tf.createPopup('<your-typeform-id>').open()
For the above JavaScript code to work correctly you also need to include our embed SDK and relevant CSS in your page (outside of the onClick event code):
<script src="//embed.typeform.com/next/embed.js"></script>
<link rel="stylesheet" href="//embed.typeform.com/next/css/popup.css" />
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.