Extension Config


To configure and customize your service plugin, you need to provide important details in the plugin.json configuration file.

Note

If you created your service plugin extension with the CLI, required fields are automatically populated for you.

Configuration Params
deploymentUriSpiBaseUri

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/.


namespaceConfigsArray<FormsSubmissionsExtensionNamespaceConfig>

Namespace names.


Was this helpful?
Yes
No

validateSubmission( )


Important: This is a handler function. Implement it only as part of the service plugin.


Note: The Form Submission service plugin only works with the Wix Forms app.

Validates a submission.

Validates a site visitor's form submission and returns any validation violations. Site visitors can see the validation violations on their forms. For example, invalid fields are highlighted in red.

Method Declaration
Copy
Method Parameters
payloadValidateSubmissionEnvelope
Returns
Return Type:ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>
Was this helpful?
Yes
No