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.
Note: The onChange hook does not work on lookup columns.
Parameters #
- event: event object
- mode: INSERT | UPDATE | 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)
})