Solved

Submit legacy form using .submit()

  • 1 February 2021
  • 4 replies
  • 247 views

Badge +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() ?

icon

Best answer by jdozierezell 5 March 2021, 20:30

View original

4 replies

Userlevel 4
Badge +11

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

Userlevel 5
Badge +8

Hi @jdozierezell,

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

Best,

Caroline

Badge +2

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!

Userlevel 5
Badge +8

Thanks so much for that additional info!

Reply