Skip to content

Custom function validation

Custom JavaScript validation function.

Parameters

  • function (Function Code, string, required) — JavaScript function code (returns boolean). Default: "".

Field selection

  • source — Field whose values this operation reads. Use a single field name, a comma-separated list of plain field paths (cash_flow_type, currency) from the multi-select UI, or a regex via Pattern mode. Omit to apply to all fields on the row.
  • target — Optional output field. When omitted, the source field is updated in place. Hidden when more than one named source field is selected.

JSON Configuration

{
"id": "op-custom",
"type": "validation",
"action": "custom",
"params": {
"function": "(cellValue, { row }) => row.status === \"active\""
},
"testInputs": [
"hello world",
"valid row",
"good value",
"HELLO WORLD",
"bad row",
"invalid value"
]
}