Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Enter Key on Exit to Next Field

Avatar

Level 3

I've insterted the following script (JavaScript) into the exit function of a few fields to move to the next field after hitting ENTER:

xfa.host.setFocus("Co-Applicant");

I've matched the flow to the tabbing order.

When I preview the form in Designer or open in Reader or Acrobat, this is what I do:

Select field 1 and enter text, press ENTER, move to next field, enter text, press ENTER, move to next field...

It all works fine until I want to go back to a previous field and fix a value or enter a value in a blank field. When I shift-TAB or click a previous field with the "exit" script, it moves through all of the fields and ends up on the last field in the page with the scirpt, like it skips everything.

Then I get these errors:

"Runtime Error!

Program: C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe

R6025

- pure virtual function call"

Then Reader force quits.

Any ideas???

1 Accepted Solution

Avatar

Correct answer by
Level 10

There is no key to stop a loop .....I am only speculating that there is a loop. Perhaps if you coudl describe what you are trying to accomplish we could make other suggestions....also if you want to send the form to LiveCycle8@gmail.com I coudl have a look to see what is happening.

paul

View solution in original post

3 Replies

Avatar

Level 10

Do you have code on the Enter as well? It sounds like you have created an infinite loop where the exit event causes the cursor to move to another field, but then the Enter of that field causes it to move somewhere else and its exit event causes another move etc ....

Paul

Avatar

Level 3

No, I do not have a script on Enter. What do you think would be an acceptable script to stop the loop?

Avatar

Correct answer by
Level 10

There is no key to stop a loop .....I am only speculating that there is a loop. Perhaps if you coudl describe what you are trying to accomplish we could make other suggestions....also if you want to send the form to LiveCycle8@gmail.com I coudl have a look to see what is happening.

paul