Do NOT use the setColumnValue function to update the field value! This is done internally. Only add new actions to the onChange event using this hook.
The getColumnValue function returns the old column value. The new column value is available in event.target.value.
Parameters #
- event: event object
- mode: 0 = INSERT | 1 = UPDATE | 2 = VIEW
-
columnName: target column name
- getColumnValue: getColumnValue(columnName)
- setColumnValue: setColumnValue(columnName, columnValue)
- setColumnStyle: setColumnStyle(columnName, cssStyle)
Return value #
None
Execute custom #
((event, mode, columnName, getColumnValue, setColumnValue, setColumnStyle) => {
// Implement onChange here
wpda.log.info("message from onChange", event, mode, columnName)
})