Hi,
I see on theis page it shows you how to add a redirect URL to a Legacy form once the submit button is clicked.
Below is where I added that URL redirect code, shown in red, but it does not work, have I put it in the right place? only the page above with info, does not give a full example added to a form, am I supposed to remove some bits from the button code if using URL redirect?
Thank you for any help, really appreciate it.
accordance with our Privacy Policy</p>
</form>
</div>
</div>
<script type="text/javascript"> KlaviyoSubscribe.attachToForms('#email_signup', {
hide_form_on_success: true,
success_url: "https://www.example.com/thank-you"
});
</script>
<script type="text/javascript" src="//www.klaviyo.com/media/js/public/klaviyo_subscribe.js"></script>
<button onclick="KlaviyoSubscribe.attachToModalForm('#k_id_modal',{delay_seconds: 0.01, hide_form_on_success: true, ignore_cookie: true, success_message: false});">Click me</button>