← All native models

Native model

workspace_form_submit

Declare a named workspace_form_submit value and reference it as workspace_form_submit.your_name. Models have no separate platform identity or lifecycle.

Topics: Surfaces

Fields

How a form submits: a GraphQL mutation written inside the element, or a server Lua action. It also says where to find errors and the saved record in the response.

object
componentRequired
string
Value
"form-submit"
confirmOptional

Confirmation message shown before submitting. Defaults to the workspace title followed by : confirm change. Leaving it out does not skip confirmation.

string
errorPrefixOptional

Prefix added to server error paths before they are matched to form inputs.

string
errorsRequired

Path in the response to the list of structured errors.

string
Minimum length
1
handlerOptional

Name of a handler declared in this workspace.

string
resultOptional

Path in the response to the saved record, used to confirm what was saved.

string
sourceOptional
string
Minimum length
0
typeRequired

graphql to run the mutation written inside the element, lua to call an action handler.

string
Allowed values
["graphql","lua"]
Minimum length
1

Only the fields listed here are accepted.