Skip to main content
Problem Solver I
August 27, 2022
Solved

Triggered form can only be activated once

  • August 27, 2022
  • 2 replies
  • 118 views

EDIT: Hmm - seemt it was a cache issue. Sorry.

I have a problem with the triggered popup.

I followed the guide from Klaviyo and added this to my page:

<div class="productmessage klaviyo_form_trigger" style="cursor: pointer;" onClick="ga('send', 'event', 'productmessage', 'klaviyo-popup');">Få 7% rabat - klik her</div>
  <script type="text/javascript">
    document.querySelector('.klaviyo_form_trigger').addEventListener('click', function (){
        window._klOnsite = window._klOnsite || []; 
        window._klOnsite.push(['openForm', 'T463mS']);
    });
</script>

It works fine the first time I click.

But when I then close the pop-up and click the link again - nothing happens.

    This topic has been closed for replies.
    Best answer by Mailbox Manny

    All good then? It was just a cache issue?

    2 replies

    Mailbox Manny
    Partner - Silver
    Partner - Silver
    August 27, 2022

    All good then? It was just a cache issue?

    Subscribe. Segment. Send. Repeat.
    numzieAuthor
    Problem Solver I
    August 28, 2022

    Seems so, yes.