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

NameTypeRequiredDescription
formIdstringYesThe ID of the form builder form
requestDatastructYesA struct containing request data
instanceIdstringNo (default="")Free text string representing the instance of a form builder form in the website (see form builder form widget)
ipAddressstringNoIP address of the visitor making the submission
userAgentstringNoUser agent of the visitor making the submission