Skip to main content

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

Hello @avinash,

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