Expand my Community achievements bar.

SOLVED

Automatically / Dynamically jump to next page?

Avatar

Level 4

Say, I have 3 input fields on the screen, when user inputs on the last/3rd input field automatically the screen should jump to next screen, we want this functionality on all our screens of the app, some screens has 4 fields, some may have 3 fields, some are 6 fields, 10 fields etc... Pl. let us know either HTML code or JavaScript code, preferably HTML code

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 7

In the exit event (javascript) of the third field put:

//when the field is exited, the cursor will jump to the field specified.

xfa.host.setFocus("myField");

Be aware this will happen in all circumstances, like if you had to go back and edit the field, when exiting it will still focus on the field specified.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

In the exit event (javascript) of the third field put:

//when the field is exited, the cursor will jump to the field specified.

xfa.host.setFocus("myField");

Be aware this will happen in all circumstances, like if you had to go back and edit the field, when exiting it will still focus on the field specified.

Avatar

Level 10

Are you developing a LiveCycle Designer PDF form?  There is no HTML in such a form.