I’m running into an issue where the the legacy form sometimes redirects to page with another form asking for the email, first name, and last name. But this only seems to happen sometimes. I’ve added the data attributes: data-ajax-submit, target, and novalidate. Thanks in advance for the help!
Issue with Legacy form redirecting on form submission

Best answer by alex.hong
Hi
Posting here to stay updated. Looks like
Generally when a sign-up form redirects to a subscribe page, it's because there are two forms on the website with the same id. To remedy this issue, you'll need to update the id of one of the forms. Detailed steps are outlined below.
-
Go to the page where the form(s) exist. Right click on the “email” field of the form and inspect the code.
-
Confirm the form is a Klaviyo form and take notice to the Form ID and its corresponding JavaScript.
-
If there is another form on the page with the same Form ID, the JS will break and cause the form to redirect to the Klaviyo Subscribe page. To prevent this, change the Form ID and Javascript for ONE of the forms to separate the two.
-
With this now being separate of the other Klaviyo form, the form should submit as intended with no redirect.
Looking to see the updates as well!
Alex
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.