Documentation Index
Fetch the complete documentation index at: https://mintlify.com/finsweet/attributes/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thefs-formsubmit attribute enables powerful post-submission actions for Webflow forms, including automatic resets, redirects, page reloads, and interaction triggers.
Attribute Syntax
The attribute uses the following syntax:Elements
form
Defines the form element that should have post-submission actions.reset
Defines an element that, when clicked, should reset the form.ix-trigger
Defines an element that should be clicked after form submission, triggering a Mouse Click interaction.Settings
reset
Defines if the form should reset all inputs after submission.- Set to
"true"to reset automatically - Set to a number (in milliseconds) to delay before resetting
preventreset
Defines an element (or wrapper of multiple elements) that should preserve its value when resetting the form.reload
Defines if the form should reload the page after submission.- Set to
"true"to reload automatically - Set to a number (in milliseconds) to delay before reloading
redirect
Defines if the form should redirect after submission.- Set to
"true"to redirect automatically - Set to a number (in milliseconds) to delay before redirecting
- Use with
redirecturlto specify the destination
redirecturl
Defines the URL to redirect the user after form submission.redirectnewtab
Defines if the redirect should open in a new tab.disable
Defines if the form should be disabled, preventing all submissions.enhance
Sends the form data as a custom JavaScript Fetch request instead of reloading the page.Usage Examples
How It Works
- Listens for form submission events
- Executes actions based on configured settings (reset, redirect, reload)
- Triggers interactions by clicking ix-trigger elements
- Preserves values on elements with
preventreset - Handles timing with configurable delays for each action
The
enhance setting uses the Fetch API to submit forms without page reload, enabling smoother user experiences.