Hi,
so far Ive used successfully a button to trigger a sign-up form (as described in your documentation), but now once clicked the button doesnt trigger the sign up form any more. Can you help? Here the code I added with the correct ID:
<button class="klaviyo_form_trigger">Newsletter</button>
<script type="text/javascript">// <!lCDATAD
document.querySelector('.klaviyo_form_trigger').addEventListener('click', function (){
window._klOnsite = window._klOnsite || O];
window._klOnsite.push(s'openForm', 'XyY63S']);
});
// ]]></script>
https://www.ayurveda-soulfood.de/pages/newsletter
Is there any mistake? Its behaviour is set on only show on custom trigger