0 Replies Latest reply on Jan 31, 2009 9:42 AM by Bill Lomax

    Restricting input to integers, display with comma separators

    Bill Lomax Level 1
      I'm using Acrobat 8 on a Macintosh. My question is very similar to the previous one about truncation. I have a small array that adds and subtracts fields, and sums them to totals. The following scripts restrict the data entry exclusively to numbers, but my problem is that it doesn't display my fields in Acrobat with comma separators, e.g., 123,456. Is there a better way of doing this, or is it just a matter of adjusting the formatting script?

      Using a custom script under Format:

      Custom Format script:

      event.value = "(" + eventvalue +")";

      Custom Keystroke Script:

      event.rc = /^[0-9]*$/.test
      (event.change);

      Bill Lomax