setTempStoredSubmission()

Overview

public string function setTempStoredSubmission(
      required string  formId        
    , required struct  submission    
    ,          boolean withFileUpload = false
    ,          string  storageKey     = ""
    ,          string  storage       
)

Stores a formbuilder form's submitted values in temporary storage (e.g. session or database). This allows the data to be restored after an interruption such as a login timeout. By default, file upload fields will be excluded from storage unless explicitly allowed by setting withFileUpload to true.

Arguments

NameTypeRequiredDescription
formIdstringYesThe ID of the form whose submission values should be stored
submissionstructYesA struct of submitted form values to be stored temporarily
withFileUploadbooleanNo (default=false)Whether file upload field values should also be included (default: false)
storageKeystringNo (default="")Optional key to namespace or identify the stored submission
storagestringNoThe storage type to use (defaults to `formbuilderDraftStorageType`)