> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: $w

## Namespace: wix-forms

## Article: Migrate from WixForms

## Article Link: https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/migrate-from-wix-forms.md

## Article Content:

# Migrate from `WixForms` to `WixFormsV2`
As of April 2025, [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/introduction.md) is deprecated and any new forms created will only work with [`WixFormsV2`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/introduction.md). You can access the functionality of [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/introduction.md) using [`WixFormsV2`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/introduction.md).

Old forms will only work with the old APIs: [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/introduction.md), [`WixFormSubmitEvent`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-form-submit-event/wix-form-fields.md), [`WixFormSubmittedErrorEvent`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-form-submitted-error-event/code.md), and [`WixFormSubmittedEvent`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-form-submitted-event/wix-form-field.md). You can see which forms are old forms and which are new forms by looking at the forms and submissions page in a site dashboard, where there's a tab for each.

Below is a list of the deprecated [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/introduction.md) components and functions and their alternatives in `WixFormsV2`.

### [`collapsed`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/collapsed.md)
Instead of `collapsed` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/collapsed.md), use [`collapsed`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/collapsed.md) from `WixFormsV2`.

### [`hidden`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/hidden.md)
Instead of `hidden` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/hidden.md), use [`hidden`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/hidden.md) from `WixFormsV2`.

### [`isVisible`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/is-visible.md)
Instead of `isVisible` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/is-visible.md), use [`isVisible`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/is-visible.md) from `WixFormsV2`.

### [`onWixFormSubmit()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/on-wix-form-submit.md)
Instead of adding `onWixFormSubmit()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/on-wix-form-submit.md) to run when a site visitor starts to submit a Wix Form yet before the form is actually submitted and sent to the server, use [`onSubmit()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/on-submit.md) from `WixFormsV2`.

### [`onWixFormSubmitted()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/on-wix-form-submitted.md)
Instead of adding `onWixFormSubmitted()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/on-wix-form-submitted.md) to run when a site visitor submits a Wix Form and it is successfully received by the server, use [`onSubmitSuccess()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/on-submit-success.md) from `WixFormsV2`.

### [`onWixFormSubmittedError()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/on-wix-form-submitted-error.md)
Instead of adding `onWixFormSubmittedError()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/on-wix-form-submitted-error.md) to run when a site visitor is not able to successfully submit a Wix Form to the server, use [`onSubmitFailure()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/on-submit-failure.md) from `WixFormsV2`.

### [`collapse()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/collapse.md)
Instead of calling `collapse()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/collapse.md) to collapse an element and sets its `collapsed` property to `true`, use [`collapse()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/collapse.md) from `WixFormsV2`.

### [`expand()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/expand.md)
Instead of calling `expand()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/expand.md) to expand an element and sets its `collapsed` property to `false`, use [`expand()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/expand.md) from `WixFormsV2`.

### [`hide()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/hide.md)
Instead of calling `hide()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/hide.md) to hide an element and sets its `hidden` property to `true`, use [`hide()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/hide.md) from `WixFormsV2`.

### [`show()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/show.md)
Instead of calling `show()` from [`WixForms`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms/show.md) to show an element and sets its `hidden` property to `false`, use [`show()`](https://dev.wix.com/docs/velo/velo-only-apis/$w/wix-forms-v2/show.md) from `WixFormsV2`.
