Constants
A constant is a lookup table — a structured grid of columns and rows. Constants serve two purposes in termco:
- Controlled values — Restrict a processor field’s valid values to entries in a constant column.
- Logic lookups — Reference constant data in logic block expressions for dynamic validation.
Creating a Constant
Section titled “Creating a Constant”- Navigate to Data > Constants and click New Constant.
- Enter a name, optional description, and tags.
- Define columns — each column has a name and unique ID.
- Add rows by filling in cell values.
- Click Save.
Editing
Section titled “Editing”- Add or remove columns at any time.
- Edit cell values by clicking directly in the table.
- Add new rows with the Add Row button.
- Delete rows by selecting them and clicking Delete.
CSV Import and Export
Section titled “CSV Import and Export”Import
Section titled “Import”- Click Import CSV on the constant editor.
- Upload a CSV file — column headers become constant columns, and rows populate the data.
- Review and adjust before saving.
Export
Section titled “Export”Click Export CSV to download the current constant data as a CSV file.
Using in Processors (Controlled Values)
Section titled “Using in Processors (Controlled Values)”Link a constant to a processor field to restrict its values:
- Open the Processor editor.
- On the target field, set Controlled Values to the desired constant.
- During review, the field displays a dropdown of values from that constant column instead of free text.
Using in Logic Blocks
Section titled “Using in Logic Blocks”Use the lookup() function in logic block expressions to reference constant data:
lookup($field_value, "constant_id", "lookup_column", "return_column")This finds the row where lookup_column matches the field value and returns the return_column value. If no exact match is found, fuzzy matching is attempted.
See the Expression Syntax reference for details.
Duplicating
Section titled “Duplicating”To create a copy of an existing constant (useful for versioning or creating variants):
- Open the constant you want to copy.
- Click Duplicate.
- The copy opens in the editor with all columns and rows preserved.
- Rename and modify as needed.