Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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)

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now