Skip to main content

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

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


Hi @jdozierezell,

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

Best,

Caroline


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!


Thanks so much for that additional info!


Reply