1 Reply Latest reply on Apr 22, 2010 10:45 AM by Steve L Walker

    comments in the fields of a barcoded form

    Raja King Level 1

      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. Re: comments in the fields of a barcoded form
          Steve L Walker Level 5

          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