As a form submission provider, you can integrate with Wix to allow allow site owners to request and use your services on their Wix sites. By integrating your service with Wix, the service validates and submits a site visitor's form.
The integration is done via an app in the Wix App Market and by implementing the Form Submissions service plugin. After the app is installed on a site, Wix triggers a call to your service whenever a form is submitted on the site.
It’s important to note the following points before starting to code:
namespace
field in the extension. For example, the namespace for the Wix Forms app is "wix.form_app.form"
.Follow these steps to begin implementing your service plugin.
You can implement this service plugin with the following frameworks:
To configure and customize your plugin, you need to provide important information in the service plugin configuration file. You can configure your plugin in the Wix Dev Center. For details, see Form Submissions Extension Configuration.
Use formSubmissions.provideHandlers()
to define the following handler functions that implement your custom business logic. Make sure you define all required functions.
Function | Required |
---|---|
validateSubmission() | Yes |
Below is an example for implementing the Form Submissions service plugin in your code.
This is the basic code structure for implementing the Form Submissions service plugin with the Wix CLI:
This is the basic code structure for implementing a self-hosted Form Submissions service plugin:
To configure and customize your service plugin, you need to provide important details in the plugin.json
configuration file.
If you created your service plugin extension with the CLI, required fields are automatically populated for you.
Deployment URI where the endpoints are called. Wix Forms appends the endpoint path to the deployment URI.
For example, to call the Validate Submission endpoint at https://my-form-submissions.com/v1/validateSubmission
,
the deploymentUri
you provide here is https://my-form-submissions.com/
.
Namespace names.