Forms
Webflow Forms enable users to capture and collect information from visitors on a site. Forms are essential for gathering user data, feedback, and enabling key interactions.
Form structure
A Webflow form consists of several nested elements that work together:
The methods documented below apply specifically to the FormForm
and FormWrapper
elements. For more information about creating and styling forms, see the Forms lesson in Webflow University.
Properties
Methods
The methods documented below apply specifically to the
FormForm
and FormWrapper
elements.form.getName()
Retrieves the name of the form.
Syntax
Returns
Promise<name
>: String - The name of the form.
Example
form.setName(name: string)
Sets the name of the form.
Syntax
Parameters
name
: String - The name of the form.
Returns
Promise<null
>
A Promise that resolves to null
.