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

FormCalc formula for auto focusing cursor?

dmontenieri
Level 1
Level 1

Is there a simple FormCalc formula to make the cursor auto focus on the next field upon entry of a previous field?

I have a form where the customer is required to put in an account #. Each digit of the 7 digit account # HAS to be in a separate numeric field. I would like it when they put the first number in, the cursor automatically moves to the next field.

I ask for FormCalc because it seems soo much easier than Javascript and I do not like Javascript much. Not much of a programmer anyway.

TIME SENSITIVE!!

THANKS!!!

0 Replies
whyisthisme
Level 7
Level 7

Well you could just set the tab order so it flows onto the next field but if you want to use code then put into the exit event:

xfa.host.setFocus("nameOfNextField")

Jono_Moore
Level 10
Level 10

Check out this blog post, there is scripting involved but there's a sample provided:

http://blogs.adobe.com/formfeed/2009/04/field_tab_on_full.html