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