Avatar

Level 10

Ok,

in addition to my previous suggestion you can use the setFocus method to guide the users into Textfield3.

1. In the exit event of Textfield1 check the value of Textfield2. If not empty, jump into Textfield3.

if (!Textfield2.isNull) {

          xfa.host.setFocus(Textfield3.somExpression);

} else {

          xfa.host.setFocus(Textfield2.somExpression);

}

2. In the exit event of Textfield2 check the value of Textfield1. If not empty jump into Textfield3.

if (!Textfield1.isNull) {

          xfa.host.setFocus(Textfield3.somExpression);

}

3. In the exit event of Textfield3 check the value of the previous Textfields. If not empty, refocus into Textfield3 until it also has a value. The users won't be able to set focus on any other field by tab button or mouse.

if (!Textfield1.isNull || !Textfield2.isNull) {

          if (this.isNull) {

                    xfa.host.setFocus(this.somExpression);

          }

}

4. To ensure the focus alsway begins at Textfield1 use this script in the docRead event of your form.

xfa.host.setFocus(Textfield1.somExpression);