Expand my Community achievements bar.

SOLVED

Carriage Return on Barcode 128 in Javascript

Avatar

Level 1

Hello,
I would like to request advice on AEM Forms with Barcode 128. To generate Barcode 128 on Form, I will require to show "|" character and Carriage Return but barcode was not generated with both in data.
- What is carriage return for javascript syntax of Barcode 128? Barcode 128 with javascript can not use "\n" or "\r" or "\012" or "\015" for carriage return.
- For Barcode 128A can use with Carriage Return but missing "|" : What is syntax for "|" on Barcode 128A? When Text data initial with "|" on Barcode 128A, it was removed in Barcode.

For example :
Barcode.rawvalue = "|" + xxx.rawvalue + "\n" ;

I hope if advise can be provided via this support channel.

 

Regards,
Toom

1 Accepted Solution

Avatar

Correct answer by
Employee

Check this URL regarding the supported characters:

Code 128 - Wikipedia

Kosta_Prokopiu1_0-1624355447014.png

and check String.fromCharCode()

JavaScript FromCharCode Function (tutorialgateway.org)

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Check this URL regarding the supported characters:

Code 128 - Wikipedia

Kosta_Prokopiu1_0-1624355447014.png

and check String.fromCharCode()

JavaScript FromCharCode Function (tutorialgateway.org)