dataLength

Specifies the maximum number of characters for this instance of the barcode. This property applies to one-dimensional barcodes only.

For software barcodes, when the moduleWidth property is not specified, the dataLength property must be supplied by the form design. For hardware barcodes, this property is ignored.

The data being displayed is not validated. For software barcodes, the application allows the data to overflow the assigned region of the field. For hardware barcodes, the result of an overflow depends on the printer.

Note: There is no corresponding minimum length restriction. Some barcode formats have a fixed number of symbols and must be filled out with padding characters. Others allow a variable number of symbols and must terminate after the last symbol.

Syntax

Reference_Syntax.dataLength = "string"

Values

Type

Values

String

A valid string representing the maximum number of characters for this barcode instance. Each barcode type has its own default length value.

Applies to

Version

XFA 2.1

Examples

JavaScript

Code11BarCode1.resolveNode("ui.#barcode").dataLength = "10";

FormCalc

Code11BarCode1.ui.#barcode.dataLength = "10"

// Ethnio survey code removed