After Submit
The After Submit event fires after the form is submitted and processed. All data has been saved at this point.
This is a server-side ProcScript event.
Available Variables
All variables exposed in 1️⃣Before Process are exposed, with the addition of:
item_id
- ID of the item
form_values
- Array of values submitted, eg: {title:"foo", etc}
Examples
Maybe you want to save the item ID of a newly created item for later use:
my_variables.new_item_id = item_id
Or, if you just want to store the provided input for later:
my_variables.name = form_values["name"]
Or maybe you want to divert to a different screen if the saved item has a status of “Error”
if ( form_values.status == "Error" ) {
goto_screen("error_dashboard")
}