Skip to main content

Create, edit, or remove a JavaScript filter column

Create a JavaScript filter column

For more information, see Custom JavaScript columns.

  1. For the relevant filter, Edit a filter.
  2. Go to the Columns Specification tab.
  3. Click Add Script Column.
  4. Enter a Column Name.
  5. Enter your JavaScript in the Code pane.
  6. Optional: Click a Green Arrow to insert a column variable into the current cursor position in the Code pane. :::info Column variables are accessed using non-standard JavaScript notation, in the format tableName['variableName']. For example, employees['employee_id']. :::
  7. Optional: Click Insert A JavaScript Function to insert hash functions, Vault Queries, or variable queries.
  8. Click Test Script to execute your JavaScript code. The result appears in the Script Result Value field.
  9. Click Save and Exit.
Edit a JavaScript filter column
  1. For the relevant filter, Edit a filter.
  2. Go to the Columns Specification tab.
  3. Click Edit Column.
  4. Continue by following the instructions in Create a JavaScript filter column.
Remove a JavaScript filter column
  1. For the relevant filter, Edit a filter.
  2. Go to the Columns Specification tab.
  3. Click Remove Column.
  4. Click Save.