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

Any way to get rid of "Invalid Barcode Value" alert

lisamwise
Registered: May 18 2009
Posts: 22

I have a form that creates a code128 barcode based on what the user enters in another field. If I leave the other field without a default value, I get this error when the document opens: "Invalid Barcode Value: Empty value is not a valid value for barcodes of type 128A." Is there any way to get rid of this message?

lisamwise
Registered: May 18 2009
Posts: 22
Really there is no answer to this?
formman
Registered: Jul 17 2008
Posts: 44
There is a solution and it basically requires you give the barcode a value. If you do not want to show that "empty state" value, then change the barcode's presence to invisible or hidden.

Forms Developer/Designer
Tech-Pro, Inc.
Roseville, MN

lisamwise
Registered: May 18 2009
Posts: 22
I have tried making the barcode invisible and hidden and still get the error. I think my problem is that I have the barcode generate based on the value entered in another field. When that field is empty I get the error. When I populate it, the error goes away. I would like other field to be empty when the user opens the form, but the error is very annoying and my users don't understand it.

Any other ideas?
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
There is no way to bypass the validation of the barcode, so you will always get a message box, if there is no value for the barcode.
You can enter a default value such as "sample code", "invalid code" or "********" for the barcode field.

Form1.#subform[0].Code128BarCode1::calculate - (FormCalc, client)if (MyTextfield.rawValue == null) then$.rawValue = "********"else$.rawValue = MyTextfield.rawValueendif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

lisamwise
Registered: May 18 2009
Posts: 22
Excellent! Thank you very much for your help Marcus. I absolutely love this forum. Everyone is so willing to help!