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?
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?
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.
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?
$(document).on('submit', 'form', function() {
$('html,body').animate({ scrollTop: 0 }, 1000);
});
This topic was automatically closed after 60 days. New replies are no longer allowed.