Skip to main content
Solved

Submit legacy form using .submit()

  • February 1, 2021
  • 4 replies
  • 275 views

Forum|alt.badge.img+2

I am using a legacy form to subscribe users, but I need to do some work with the input before submitting. When the form is submitted normally, everything works as expected, and the user’s information is directly entered into Klaviyo. When using .submit() within the onsubmit method, however, the https://manage.kmail-lists.com/subscriptions/subscribe loads instead.

 

Is it possible to directly submit a subscriber with .submit() ?

Best answer by jdozierezell

Hi @caroline and @jallain, sorry for not responding earlier. I had tried removing the ajax-submit, but it didn’t have an effect on the issue. I wound up solving by creating a standard html form and posting the information to a node server where I used node-klaviyo to process. That method worked for me. Thanks!

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

jallain
Klaviyo Employee
Forum|alt.badge.img+11
  • Klaviyo Employee
  • 70 replies
  • February 5, 2021

Hello @jdozierezell , have you tried removing the “data-ajax-submit” attribute from the form?


caroline
Forum|alt.badge.img+8
  • Klaviyo Alum
  • 215 replies
  • March 5, 2021

Hi @jdozierezell,

Just wanted to follow up on this -- were you able to give @jallain’s suggestion a try?

Best,

Caroline


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • March 5, 2021

Hi @caroline and @jallain, sorry for not responding earlier. I had tried removing the ajax-submit, but it didn’t have an effect on the issue. I wound up solving by creating a standard html form and posting the information to a node server where I used node-klaviyo to process. That method worked for me. Thanks!


caroline
Forum|alt.badge.img+8
  • Klaviyo Alum
  • 215 replies
  • March 5, 2021

Thanks so much for that additional info!