To run custom code after submission, use the postFormSubmit hook.
Parameters #
- responseCode: OK | ERROR | INFO
- mode: INSERT | UPDATE | VIEW
- getColumnValue: getColumnValue(columnName)
Return value #
None
Send notification after insert #
((responseCode, mode, getColumnValue) => {
if (responseCode === "OK" && mode === "INSERT") {
// Send notification about new customer
const customerNumber = getColumnValue("customerNumber")
window.open("https://mydomain.com/notify/" + customerNumber)
}
})