WixFormsV2
A WixFormsV2
element displays customizable forms, collects all the info that a site visitor entered into the form fields, and lets you track all form submissions in the dashboard. Learn more.
Additional information about this section
Store values associated with an object
- customClassList
A property that represents an element's custom CSS classes.
- deleted
Indicates if an element was temporarily deleted from the DOM. Use the restore function to restore the deleted element.
- rendered
Indicates if an element is currently in the DOM structure.
- global
Indicates if an element appears on all pages or only on the current page.
- id
Gets the element's ID.
- parent
Gets the element's parent element.
- type
Gets the element's type.
- hidden
Indicates if the element is visible or hidden.
- isVisible
Indicates if the element is actually visible.
- collapsed
Indicates if the element is collapsed or expanded.
Perform actions on an object
- getFieldValues( )
Gets Wix Form field values. Note: The WixFormsV2 element is only available in Wix Studio and Editor X.
- getStepCount( )
Gets the total number of steps in a Wix Form. Note: The WixFormsV2 element is only available in Wix Studio and Editor X.
- getStepNumber( )
Gets the current step number of a Wix Form. Counting starts from 1. Note: The WixFormsV2 element is only available in Wix Studio and Editor X.
- navigateToStep( )
Navigates to the given Wix Form step. If an invalid number is passed, navigateToStep() doesn't run. Note: The WixFormsV2 element is only available in Wix ...
- onFieldValueChange( )
Runs a callback when a site visitor changes Wix Form field values. Note: The WixFormsV2 element is only available in Wix Studio and Editor X.
- onStepNumberChange( )
Runs a callback when a Wix Form navigates to another step. Note: The WixFormsV2 element is only available in Wix Studio and Editor X.
- onSubmit( )
Runs a callback when a site visitor starts to submit a Wix Form yet before the form is actually submitted and sent to the server. Note: The WixFormsV2 element ...
- onSubmitFailure( )
Runs a callback when a site visitor is not able to successfully submit a Wix Form to the server. Note: The WixFormsV2 element is only available in Wix Studio ...
- onSubmitSuccess( )
Runs a callback when a site visitor submits a Wix Form and it is successfully received by the server. Note: The WixFormsV2 element is only available in Wix ...
- setFieldValues( )
Sets Wix Form field values. Setting the invalid field values fires the onFieldValuesChange() callback. The callback returns fields with the valid values ...
- submit( )
Submits a Wix Form. Note: The WixFormsV2 element is only available in Wix Studio and Editor X.
- delete( )
Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element. SEO crawlers cannot find content in an element whose ...
- onMouseIn( )
Adds an event handler that runs when the pointer is moved onto the element. You can also define an event handler using the Properties and Events panel.
- onMouseOut( )
Adds an event handler that runs when the pointer is moved off of the element. You can also define an event handler using the Properties and Events panel.
- restore( )
Restores a deleted element to the DOM.
- scrollTo( )
Scrolls the page to the top of the element using an animation.
- onViewportEnter( )
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
- onViewportLeave( )
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.
- hide( )
Hides the element and sets its hidden property to true, using an effect if specified.
- show( )
Shows the element and sets its hidden property to false, using an effect if specified.
- collapse( )
Collapses the element and sets its collapsed property to true.
- expand( )
Expands the element and sets its collapsed property to false.