zpl.tools
Field Commands

^FN - Field Number

Assigns number to field for variable data

^FN - Field Number

Overview

The ^FN command assigns a field number to enable variable data substitution. This allows you to create label templates with numbered placeholders.

Syntax

^FNn

Parameters

  • n = Field number (1-9999)

Description

  • Creates numbered fields for template-based printing
  • Enables data variable substitution
  • Multiple labels can use same format with different data
  • Used with ^FV to provide variable values

Usage Notes

  • Field numbers must be unique within label
  • Combine with ^FV to provide data
  • Commonly used for batch printing with variable data
  • Improves performance in variable data applications

Example

^XA
^FO50,50
^ADN
^FN1^FDDefault Value^FS
^FO50,100
^ADN
^FN2^FDAnother Default^FS
^XZ

Variable Data Substitution

^FO50,50
^ADN
^FN1^FDProduct: Widget A^FS

^FO50,100
^ADN
^FN2^FDPrice: $19.99^FS

Then replace with:

  • Field 1 → "Product: Widget B"
  • Field 2 → "Price: $29.99"
  • ^FV - Field Variable
  • ^FD - Field Data
  • ^FA - Field Allocate

See Also