2 Replies Latest reply on Mar 7, 2014 4:05 PM by lslocum

    JavaScript for auto tab.  Is there a way for me to format the fields to only accept numbers?

    lslocum Level 1

      I created a form which is using the following JavaScript for auto tab. Is there a way for me to format the fields to only accept numbers?

       

      ______________

      Below is Format Script

      ______________

       

      // Document-level function

       

      function tab_next(Text5) {

       

       

          // Move to next field if Enter key is pressed

          // or the user has clicked outside of the field

          // or if the number of character is the character limit

          if (event.willCommit || AFMergeChange(event).length === event.target.charLimit) {

              getField(Text5).setFocus();

          }

      }

       

       

      ____________

       

      Below is Keystroke script

      ____________

       

       

      // Autotab to the " Text5" field

       

      tab_next("Text5");