1 Reply Latest reply: May 17, 2011 10:54 AM by George_Johnson RSS

    set to press the enter key to move to next field on form? 9 pro ext-

    seleene9

      i have creasted a form. I want the person who is using the form to not have to tab to go to the next line. I would prefer to  have the person fill the field and press enter, then the cusor should move to the next file of entry. (instead of tab) I can figure out how to do this. HELP PLEASE!

        • 1. Re: set to press the enter key to move to next field on form? 9 pro ext-
          George_Johnson CommunityMVP

          It's possible, but you have to use JavaScript. For example, create a new document-level JavaScript and add the following function to it:

           

          function goNext(sNextField) {
          
              // Set the focus to the next field
              if (event.commitKey === 2) {
                  getField(sNextField).setFocus();
              }
          
          }
          

           

          You then have to call it like this from the Format (or Keystroke) event of a text field:

           

          goNext("text2");
          

           

          Where "text2" is the field name of the next field.