Expand my Community achievements bar.

How i make barcode to update based on textfield?

Avatar

Former Community Member

I have a form which i develop in livecycle designer.
On the form i have textfield and a barcode field.
I want to update barcode every time i update textfield.
Making a calculate event on barcodefield doesn't work.

Like:
topmostSubform.Page1.barcode::calculate - (JavaScript, client)
this.rawValue = textfield1.rawValue;

3 Replies

Avatar

Former Community Member

The code you described should work fine.  If the problem is that the barcode is graying-out when you try to enter data using the free Adobe Reader then it may be that the form needs to be properly extended.

I've attached a couple of custom-coded barcode samples, one properly extended and the other not.

Avatar

Former Community Member

I am using code128 type barcode.
So your sample doesn't solve my problem.

Avatar

Former Community Member

Dynamically capturing form fields on an interactive form is possible using the PaperFormsBarcode object, only. The PaperFormsBarcode object supports three two-dimensional barcode symbologies: PDF417, DataMatrix, and QRCode. It does not support any one-dimensional barcode symbologies including code128.

I believe a code128 barcode can be populated client-side on the initialize event, only.

Steve