Expand my Community achievements bar.

BARCODE 128 - possibility of binding 2 data fields to the barcode

Avatar

Former Community Member

Hi experts,

Is it possible to bind 128 Bar Code to two fields in Data View.

If yes, can you explain how. is it possible through scripting.

If no, is there any alternative to 128 BARCODE (bar code scanner system can 128 barcode category barcodes)

which will enable a 2 field binding instead on conventional 1 field binding?

Regards.

Rohit

2 Replies

Avatar

Former Community Member

The attached concatenates the raw values from two protected fields and encodes a Barcode 128 on the barcode initialize event.

// form1.page1.code128BarCode::initialize - (JavaScript, client)

xfa.resolveNode("form1.page1.code128BarCode.value.#text").value = form1.page1.chars1to4.rawValue + form1.page1.chars5to10.rawValue;

Untitled.png

Steve