Expand my Community achievements bar.

Cursor

Avatar

Former Community Member
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
2 Replies

Avatar

Former Community Member
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");

}