To use the Submissions API, install the @wix/forms
package.
To install the package, follow the instructions below based on your development environment.
When developing with:
npm install @wix/forms
or
yarn add @wix/forms
When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:
npm install @wix/forms
or
yarn add @wix/forms
To import the package in your code:
import { submissions } from "@wix/forms";