Expand my Community achievements bar.

FormCalc formula for auto focusing cursor?

Avatar

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!!!

2 Replies

Avatar

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")

Avatar

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