Hey sorry for the late reply, I didn’t expect to get an awnser so soon. I am not using the dawn theme but a custom theme instead i think. not completely sure on that because i am not the one who developed the website. I am just doing this page. but with a js handler i think you mean this:
document.getElementById('ebook-form').addEventListener('submit', function(event) {
event.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
if (name && email) {
this.submit();
} else {
alert('Vul alle velden in.');
}
});
just a little varification is al. but i dont think this does anything because i dont have an id assinged to my form. further for the preview link, i think you mean this https://a16ouka3bi2hi1cf-79398338909.shopifypreview.com/pages?preview_key=9a7a05aeba2be3ffdfe520308b2546e6 but i dont know for how long it is active and while it is not published it won’t work anyway because of the shopify ReCaptcha restrictions. If there is anything else you need, just let me know. Thanks for the help!