2020.2

Table Of Contents
A barcode is always added with the barcode type's default properties and dimensions, but they
can easily be changed; see "Barcode type and properties" below.
Changing a barcode
Barcode script
The barcode script determines which value is fed to the barcode generator. Double-click the
script on the Scripts pane to change which field or fields are added to the barcode value. When
you select more than one field, the script puts the values of the selected fields in one string and
passes that to the barcode generator.
Tip
If you don't know which script matches the barcode, click the box that contains the
barcode and check the ID and class of that box on the Attributes pane. Then take a look
at the Scripts pane: the selector of the associated script is the same as the ID and/or class
of the barcode box.
If a barcode has more than one class name, only the first one is used in the script's
selector.
Barcode type and properties
A barcode is always added with the barcode type's default properties and dimensions.
To change the barcode type or the barcode's properties such as the scale and color, open the
Barcode properties dialog: right-click the barcode (on the Design tab in the Workspace) and
select Barcode on the shortcut menu.
The barcode properties set via the properties dialog are written to the data-params attribute on
the barcode element in JSON format. (To see this, select the barcode and open the document
in the Source view.)
Click the barcode type below for information about its properties.
l Australia Post, see "Australia Post, Japan Post, KIX, USPS IMb" on page673
l "Aztec Code" on page624
l "Codabar" on page626
Page 621