checksum

Specifies an algorithm for the checksum to insert into the barcode.

The calculation of the checksums is based on the barcode data.

The template model allows any one of the choices listed below. However, some barcode formats either require a particular checksum or never allow a checksum. For such barcodes, the checksum property is ignored. Some of the remaining barcode formats support only a limited subset of these choices. For such barcodes, the template model does not specify an unsupported choice.

Syntax

Reference_Syntax.checksum = "none | auto | 1mod10 | 2mod10 | 1mod10_1mod11"

Values

Type

Values

String

  • none (default)

  • auto

  • 1mod10

  • 2mod10

  • 1mod10_1mod11

Do not insert a checksum.

  • auto

  • 1mod10

  • 2mod10

  • 1mod10_1mod11

Insert the default checksum for the barcode format.

  • 1mod10

  • 2mod10

  • 1mod10_1mod11

Insert a 1 modulo 10 checksum.

  • 2mod10

  • 1mod10_1mod11

Insert a 2 modulo 10 checksum.

  • 1mod10_1mod11

Insert a 1 modulo 10 checksum followed by a 1 modulo 11 checksum.

1 modulo 10, 2 modulo 10, and 1 modulo 11 are barcode standards. Refer to documentation on those standards for more information on those barcodes.

Applies to

Version

XFA 2.1

Examples

JavaScript

Code11BarCode1.resolveNode("ui.#barcode").checksum  = "2mod10";

FormCalc

Code11BarCode1.ui.#barcode.checksum  = "2mod10"

// Ethnio survey code removed