Expand my Community achievements bar.

comments in the fields of a barcoded form

Avatar

Level 2

Hi,

Can we add comments in the fields of a barcoded form?

Such as; 'please fill name'.. or 'please fill with a yyymmdd format'.. etc.

Thanks before,

Raja

1 Reply

Avatar

Former Community Member

You are free to encode any ASCII value in a PaperFormsBarcode object using custom encoding. For example,

// form1.page1.subform1.PaperFormsBarcode1::calculate - (JavaScript, client)


var barcodeStr = "";


if (xfa.host.version > 7.05) {

  var firstName = "";

  var lastName = "";

  if (!(form1.page1.subform1.firstName.isNull)) {

    firstName = form1.page1.subform1.firstName.rawValue;

  }

  if (!(form1.page1.subform1.lastName.isNull)) {

    lastName = form1.page1.subform1.lastName.rawValue;

  }

  barcodeStr = "please fill name" + "|" + firstName + "|" + lastName;

}

this.rawValue = barcodeStr;

Steve