Appearance
postFormSubmit
To run custom code after submission, use the postFormSubmit hook.
Parameters
| Parameter | Type | Description |
|---|---|---|
| responseCode | enum | OK | ERROR | INFO |
| mode | enum | INSERT | UPDATE | VIEW |
| getColumnValue | function | See getColumnValue(columnName) |
Return Value
None
✨ Example Send Notification after Insert
js
((responseCode, mode, getColumnValue) => {
if (responseCode === "OK" && mode === "INSERT") {
// Send notification about new customer
const customerNumber = getColumnValue("customerNumber")
window.open("https://mydomain.com/send-notification/" + customerNumber)
}
})