Expand my Community achievements bar.

tab order after clicking checkbox?

Avatar

Level 1

how do I have the reset tab order after clicking checkbox. In other words, after they click checkbox I want to jump down the page to a particular field and skip over a bunch of fields.

4 Replies

Avatar

Former Community Member

You have one of two choices .....you can modify the tabbing order using the tab order tool under View/Show Tab Order or you can leave the tab order as is an programatically put the cursor into the field you want. On the exit event use this code:

xfa.host.setFocus("name of target field");

Paul

Avatar

Level 1

Thanks Paul it almost works perfectly (option 2) but I need it to be when they select the checkbox it will go down to the field otherwise will remain standard tab order. Any ideas?

Avatar

Former Community Member

Try moving your code to the change event. Note that the cursor will move to that field if the uncheck the checkbox as well (unless you put a test in for it).

Paul