2 Replies Latest reply on Jan 27, 2017 12:34 AM by maxwyss

    Trailing zeros dropped from field when using barcode

    doublechamp

      I have a form that has a text field for a percentage (5 digits with decimal).  If the percent is 100.00, the barcode reads 100.  Is there a way to capture the percentage without the decimal and keep the trailing zeros in the barcode?

       

      Here is what I have tried:

      strValues += oParam.oDoc.getField(strFieldName).value.toString().replace(/\./g'');

       

      with results of 100.

       

      Thanks