saveFormSubmission()
Overview
public any function saveFormSubmission(
required string formId
, required struct requestData
, string instanceId = ""
, string instanceSite = ""
, string instanceUrl = ""
, string instancePage = ""
, string ipAddress
, string userAgent
, boolean validateCaptcha = true
, boolean validateForm = true
, boolean recordAction = true
, array formItems
, struct data
)
Saves a form submission. Returns a validation result. If validation failed, no data will be saved in the database.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| formId | string | Yes | The ID of the form builder form |
| requestData | struct | Yes | A struct containing request data |
| instanceId | string | No (default="") | Free text string representing the instance of a form builder form in the website (see form builder form widget) |
| instanceSite | string | No (default="") | |
| instanceUrl | string | No (default="") | |
| instancePage | string | No (default="") | |
| ipAddress | string | No | IP address of the visitor making the submission |
| userAgent | string | No | User agent of the visitor making the submission |
| validateCaptcha | boolean | No (default=true) | |
| validateForm | boolean | No (default=true) | |
| recordAction | boolean | No (default=true) | |
| formItems | array | No | |
| data | struct | No |