1 Reply Latest reply on May 7, 2014 12:43 PM by MatLac

    TAB somewhere else

    MatLac Level 1

      I tryied forcing it with setFocus() on blur event but I want it to work only if TAB is pressed.  Now it does it all the time, even when the user manually selects another field to set focus on with his mouse.

       

      Also, I can't just change the TAB order because multiple fields will all TAB towards the same place.

       

      Any idea?

        • 1. Re: TAB somewhere else
          MatLac Level 1

          Putting the following script in a custom format script checks if the value was commited using TAB.  It's almost perfect.

           

          if (event.commitKey == 3){

          this.getField("OPE009.DESCRIPTION.1").setFocus();

          }

           

          If I enter a value, click on another field, enter a value there and then press TAB, the first value is commited and the script triggers which is not supposed to.  Anyway I coud force commit on the first field?