These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

3 of 9 barcode?

markojett
Registered: Dec 21 2009
Posts: 22
Answered

I've recently created a form in Livecycle using the 3 of 9 barcode. Our barcode readers won't read it though...I'm told that the barcode needs an asterick before and after the number as stoppers. I've tried to create a java script to include this, but I can't get it to work. Worst case, I can create a form in Adobe and have the barcode calculated in another seperate field, but I would still need the field that the user enter numbers into to include * before and after, so it's still a java script. Very new to java so any help would be greatly appreciated!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

you can do it in the following way.
Put this FormCalc-Script into the calculate event of you barcode field.

// Get the value of a specific form field such as NumericField1var MyInput = NumericField1.rawValue// Add an asterick to the first and last position of the valuevar MyCode = Concat("*", MyInput, "*") // Put the new asterisked value into the barcode field$.rawValue = MyCode

With this method, the users don't need to type the astericks manually.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

markojett
Registered: Dec 21 2009
Posts: 22
Awesome - Thanks soo much.