I can see that popups can be opened via the `openForm` API [1] but we have a usecase where we want to close the form externally. Is there an api that we can call to close all forms?
Alternatively, can we disable showing of all forms via JavaScript. Our current usecase is that we are embedding our website in a webapp and want to disable showing for forms in that context.
[1] https://developers.klaviyo.com/en/docs/how-to-custom-trigger-a-popup-or-flyout-form
Close popup via api
Hello
Welcome to the Klaviyo Community!
Interesting use case! Really appreciate you explaining that.
Unlike leveraging the _klOnsite.push
or _klOnsite.openForm
scripts to open/launch a signup form from a custom trigger, at present, there isn’t any supported functionality for closing a form via the affiliated _klOnsite
script.
I’d be more than happy to share this feedback and use case with our Product Team to explore further!
Thanks for being a part of our Klaviyo Community!
David
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.