Carriage Return on Barcode 128 in Javascript | Community
Skip to main content
New Participant
June 21, 2021
Solved

Carriage Return on Barcode 128 in Javascript

  • June 21, 2021
  • 1 reply
  • 1113 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kosta_Prokopiu1

Check this URL regarding the supported characters:

Code 128 - Wikipedia

and check String.fromCharCode()

JavaScript FromCharCode Function (tutorialgateway.org)

1 reply

Kosta_Prokopiu1
Kosta_Prokopiu1Accepted solution
Employee
June 22, 2021

Check this URL regarding the supported characters:

Code 128 - Wikipedia

and check String.fromCharCode()

JavaScript FromCharCode Function (tutorialgateway.org)