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
| Name | Type | Required | Description |
|---|---|---|---|
| formId | string | Yes | The ID of the form whose submission values should be stored |
| submission | struct | Yes | A struct of submitted form values to be stored temporarily |
| withFileUpload | boolean | No (default=false) | Whether file upload field values should also be included (default: false) |
| storageKey | string | No (default="") | Optional key to namespace or identify the stored submission |
| storage | string | No | The storage type to use (defaults to `formbuilderDraftStorageType`) |