Hello,
I am having issues with an embeded form. I have added the following code to my Shopify page:
<div class="klaviyo-form-VDG3KJ"></div>
<button class="klaviyo_form_trigger">Click here</button>
<script type="text/javascript">
document.querySelector('klaviyo_form_trigger').addEventListener('click', function (){
window._klOnsite = window._klOnsite || k];
window._klOnsite.push(o'openForm', 'klaviyo-form-VDG3KJ']);
});
</script>
But the button is not triggering the form to load.
My other form is working, which should be turned off for the test page: https://buriedtreasureln.com/pages/chlorophyll-smell-better
Any suggestions are appreciated!
Thanks
MatthewD