Skip to main content
Question

Custom Trigger (openForm) Not Showing Popup Even Though Onsite Script Is Loaded

  • December 2, 2025
  • 0 replies
  • 9 views

Forum|alt.badge.img

Hi everyone — hoping someone from Klaviyo engineering or community can help.
I’m trying to trigger a popup form via the custom JavaScript trigger:

 

window._klOnsite.push(['openForm', 'TnP475']);

Here’s the problem:

The onsite script loads correctly, _klOnsite exists, the push call runs with no errors… but the popup never appears.

I have tested:

What’s working

  • klaviyo.js?company_id=WhZZJ7 loads on the page

  • window._klOnsite is defined

  • Calling openForm in the browser console returns undefined (normal) but no form displays

  • Form is Live

  • Display timing is set to “Only show on a custom trigger”

  • Display step is correctly set to the Email Opt-In step

  • Teaser step is disabled

  • Form works inside Klaviyo preview

  • The site is published (not in preview)

  • Event listener in Wix Velo triggers correctly (verified via console logs)

  • No JS errors from Klaviyo in console

Targeting

Since “custom trigger only” hides the Targeting tab, I temporarily disabled it, added URL rules, saved, and re-enabled custom trigger.
Still no popup.

Testing directly

Even when I run the trigger manually on the live site:

 

window._klOnsite.openForm(['TnP475']);

I get no errors, but no popup.

Environment

  • Wix site

  • Form ID: TnP475

  • Account: WhZZJ7

What I need help with

It looks like the form is simply not loading/registered by Klaviyo on my domain even though the script itself is active.

Is there something on Klaviyo’s side that could prevent a specific form from being available for openForm?
Is there a way to confirm whether Klaviyo is actually loading the form definition on the page?

Any insight would be massively appreciated. Happy to provide screen recordings or console logs.

Thanks in advance!