saveFormSubmission()
Overview
public any function saveFormSubmission(
required string formId
, required struct requestData
, string instanceId = ""
, string ipAddress
, string userAgent
)
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) |
ipAddress | string | No | IP address of the visitor making the submission |
userAgent | string | No | User agent of the visitor making the submission |