17 Replies Latest reply on Jan 7, 2016 12:57 AM by George_Johnson

    How to allow only one decimal point and integers in the Custom Keystroke of a text field in abobe acrobat pro???

    Alex Doubts Level 1

      I want to allow only one decimal point and integers in the Custom Keystroke of a text field in abobe acrobat pro?

      My code is as below:

      if(event.change=="~" || event.change==":" || event.change.match(/[^0-9.]/) != null)

      {

       

      event.rc=false;

       

      }

       

      In the above code I can enter more than one decimal point. How to block the same. I don't want to use the format type as Number.