You’re dealing with a non-responsive submit button inside a custom-coded slider form in Webflow and want the slider to advance once it’s submitted to display a Calendly embed. Here's how to identify and fix the issue.
<form>
tag (not nested improperly).event.preventDefault()
in custom JS without handling the submit event manually.To move the Webflow slider to the next slide after submission:
id
(e.g., #custom-form
) to your form.tag area:
<script> const form = document.getElementById('custom-form'); form.addEventListener('submit', function(e) { e.preventDefault(); // Replace this with actual form submission logic if needed // Simulate a delay or submit to endpoint if needed, then move to next slide const slider = document.querySelector('.w-slider'); const nextButton = slider.querySelector('.w-slider-arrow-right'); nextButton.click(); });</script>
loading="lazy"
).onSlide
event.To fix your submit button issue, validate the form and button setup, ensure there are no JS errors, and use custom JavaScript to transition to the next slide after successful submission. Then embed your Calendly widget in the following slide to complete the booking flow.