Solved

Close popup via api

  • 27 June 2022
  • 1 reply
  • 42 views

Badge

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

icon

Best answer by David To 27 June 2022, 21:37

View original

1 reply

Userlevel 7
Badge +58

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