Groups Back to dashboard

Tags

How tags work

A tag is a set of rules plus the documents they apply to. When an extraction finishes, every tag that matches contributes its rules, and they run in one pass over the fields.

Rename a column. Pick the field as the rule's source and type the name you want. The column keeps its position — renaming box 2 of a W-2 leaves it between boxes 1 and 3.

Reformat a value. Add formatters to the same rule — strip non-digits, uppercase, regex-replace. They run in order, left to right, on that one field.

Build a column from several others. Leave the source empty, give the rule a destination name, and add a script formatter. Map a short variable to each field you need, then write JavaScript returning the value:

f → 1 Wages, tips, other compensation
m → 5 Medicare wages and tips

return Number(f) + Number(m)

The new column lands where the first field it uses was, and the fields it consumes are replaced by it. A column built from nothing — a constant — goes last.