Streaming live at 10am (PST)

Handling events on form submission


#1

What events fire when I submit a form in Webflow? I need to scroll the page to the top after submitting a form and am not sure where to hook in a function.

Anyone?


#2

You could put the submit form in a link div and set the link div to scroll to the specified location…

or

Set the forms target URL as the page you’re on so it reloads the page again.


#3

What if it’s a dynamic single page? I just need access to the event that the form triggers… do you know what that is?


#4
$(document).on('submit', 'form', function() {
    $('html,body').animate({ scrollTop: 0 }, 1000);
});

#5

This topic was automatically closed after 60 days. New replies are no longer allowed.