Prevent Webflow Form Submission Default Behaviour

How can I reset the webflow form and prevent the default? I’m aware that I can use Fs attributes for this. But-- I’m doing a bit of custom coding.

Context: I’m sending form data to a custom API endpoint based upon some logic.

What specific code I need to write?

hey @Darshil! You should be able to mix Attributes with Custom code without any issues. Do you have a link to where the form is built? What have you tried so far?