Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change order of fields encoded into barcode

Community Beginner ,
Jul 05, 2016 Jul 05, 2016

I have a form that is encoding several fields into a bar code, but no matter what I try, I can't seem to control the order that the fields get encoded into the data string of the barcode when it is read by a phone app. Now that I think about, it I am not sure if the data is encoding incorrectly or if the phone app is changing the order.

How to you control the order of the data encoded, and

Is there a way to see the encoded string?

Thanks in advance!

Chris

TOPICS
Acrobat SDK and JavaScript
323
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 05, 2016 Jul 05, 2016

It is based on the order the fields are combined.

You can create another field with the same name and change the font.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 06, 2016 Jul 06, 2016

gkaiseril wrote:

It is based on the order the fields are combined.

Thanks for the reply!

That is what I am trying to control, the order in which the fields are combined.

No matter what order I pick the fields to include in the "Pick" box in the barcode properties dialog, or how I arrange the order of the fields in the panel to the right side of the page, or how I arrange the physical order of the fields on the page, the order of the data when combined doesn't seem to change.

What am I missing?

Thanks in advance,

Chris

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 06, 2016 Jul 06, 2016
LATEST

You cannot use the "Field is the sum of the following fields:" because that option for calculation is to sum the numeric values and not concatenate the string values of the fields. That is also why there is no way to order fhe fields since summing a series of numbers does not change the result. You can also not use the "Simplified field notation" for the same reason.

You need to use the "Custom JavaScript calculation" option and force the value of the fields to be strings and not numbers so the string values including leading zeros can be concatenated into a larger string. You may also have to add the 'guard" characters so the sanner reading the code will know the start and end of the bar code values.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines