These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Can you get the tab order of a field with Javascript?

alangbaker
Registered: Feb 7 2008
Posts: 2

I'm trying to write a script that will change the behaviour of the Reset button on about 400 forms.

Since I can't remove the Reset button from the tab order, I've created a script that triggers "OnFocus" that will cause the form to skip to the first field on the next page of a multi-page form when the user tabs to the Reset button.

Now I'd like to write a batch script that will put this script into all of the forms that have already been created, but to do that, I've got to be able to determine which is the first field of both the first page and the first field of the next page in my batch script.

So: can I determine the tab order of a page from within a script?

Thanks

Alan

My Product Information:
Acrobat Pro 8.1.1, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Not really, there is the "doc.setPageTabOrder()" function, but it sets that general tabbing order, rows or columns, not individual field tabbing.

So the short answer is no.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script