getTempStoredSubmission()
Overview
public struct function getTempStoredSubmission(
required string formId
, string storageKey = ""
, string storage
)
Retrieves a formbuilder form's previously stored submission values from temporary storage (e.g. session or database). This is typically used to repopulate a form after the user returns from an interruption such as a login timeout.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| formId | string | Yes | The ID of the form whose stored values should be retrieved |
| storageKey | string | No (default="") | Optional key to namespace or identify the stored submission |
| storage | string | No | The storage type to use (defaults to `formbuilderDraftStorageType`) |