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

setPageTabOrder = "unspecified" via JavaScript

AndrewAlb
Registered: Aug 16 2007
Posts: 97
Answered

Does anyone know how you can unset the page tab order via JavaScript.

I have a dialog that allows my users to set various features of the form. One of which is the tab order via the setPageTabOrder function.

The problem is they can set the tab order to row, column or document structure but if they later decide to set their own tab order, they have to edit the page properties manually in order to gain control over the tab order again.

I have tried passing in "unspecified", null, empty string but nothing seems to let me set the tabbing order to "unspecified" - like I can manually by changing the page properties.

In the API documentation - it doesn't say anything about this.

any ideas?

Thanks!

Andrew D. Albrecht, MS
Solutions Developer
ING USFS

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Nope, there's no way to unset tab order with JavaScript, or to be more specific. There is no way to specify how individual fields are tabbed in the same way that it is done from the Acrobat UI. There is however a way to fake tab ordering. Place a "OnBlur" script into every field. In the script use the "setFocus" fucntion to set the next field. This is not a very clean methodology, but it's your only option with JavaScript.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

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

AndrewAlb
Registered: Aug 16 2007
Posts: 97
Thanks.

I wasn't even trying to set the actual tab order, I was really just trying to set the tab order to "Unspecified" so I could more easily hand control of the tabbing order back to the user. But oh well.

Thanks for the reply.

Andrew D. Albrecht, MS
Solutions Developer
ING USFS