Highlighted

Cursor

Avatar

12-06-2008

Hello all,



I was wondering if there is away or code that automatically puts the cursor to a specific field if the user enters a certain answer in another field?



Thanks



Shane C

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

12-06-2008

You can use the xfa.host.setFocus("fieldname") to move the cursor



so you will have on the exit event of the field that you want to test:



if (this.rawValue == "answer you want to test"){

xfa.host.setFocus("fieldname of where you want to go");

}