Prevent redirect after form submit

I have a form in webflow with a custom action parameter to sign people up to my list in Mailchimp. On submit, I show the Success/Error Messages provided by webflow. This works great.
image

The problem is that I’ve changed to ConvertKit. I’ve updated the action URL and the inputs, but now when I submit, instead of showing the Success/Error messages, I receive a JSON response and the browser renders it instead of remaining on the current page.

Is there something I can do to get the new form to behave like the old one?

2 Likes

+1, looking to get this fixed on my site as well!

I ended up adding this script to my page before the </body> tag and it worked. To do it, go to Pages | Click the gear icon next to your current page | scroll down until you see the Custom code section.

2 Likes

Did anyone managed to fix this issue? I tried the code that @nachocab posted but it didn’t work :frowning:

The key is ensure that the id that you give your form matches what you put here $("#formID")

Anyway, I stopped using this approach because I ended up getting flooded with spam signups. If you do this, make sure you’re using recaptcha.

Is there an other solution to this? The script isn’t working for me (I get a form error message after submit)