title: Keeping leading zeros in Adobe Acrobat XI Pro
body: <p>How do I retain a 0 in the numeric formatted fields when the zero is at the beginning of a number? right now the field drops the 0 and proceeds to display the second number.
  For example, in the number field, if i enter "00100", then it displays as "100".</p>
  
  <p>I have written a keystroke script to accept only numbers but I need to limit the numbers to 6 digits</p>
  
  <p>Please help.</p>
  
  <pre><code>function numOnly_ks() {
  
      // Get all of the characters that have been entered in to the field
      var value = AFMergeChange(event);
  
      // Do nothing if field is blank
      if(!value) return;
  
      // Reject the entry if the entry doesn't match the regular expression
      if(!AFExactMatch(/^[0-9 /+]+$/, value)) event.rc = false;
  
  }
  </code></pre>