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

next_tab property itemID

lucianopilla
Registered: Oct 18 2007
Posts: 76

in official javascript reference there's a short description on the use of "next_tab" (or first_tab) property for setting order tab. I tried it but it doesn't work.
Can i have some suggest about?

Adding intelligence to documents

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
These properties are of course parameters used in creating a custom dialog definition.

The behavior of these parameters varies a bit between versions of Acrobat. So the best way to them is to set the "first_tab" property at the top level of the "description", then set the "next_tab" for every element you want in the tab order. Make sure the oreder is correct and do not assume any default behavior. The value of these properties is the "item_id" of the element you want to tab into. For radio buttons, only the first one in the group needs the "next_tab".

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

lucianopilla
Registered: Oct 18 2007
Posts: 76
i tried to refer to them but i have again problem.
in my dialog i've some default values:

dialog.load
({
sub1: util.printf("%.0s", numpro),
cogn: util.printd("dd/mm/yyyy", oDoc.info.DataFattura),
gand: util.printf("%.3s", oDoc.info.importo),
name: util.printf("%.0s", oDoc.info.NumeroDocumento),
forn: util.printf("%s$", oDoc.info.RagioneSociale),
lorn: util.printf("%.0f", numanno),
puid: util.printf("%.0s", oDoc.info.note),
nuid: util.printf("%.0f", numidentificativo),
rest: oDoc.info.tipo_documento,
andi: util.printf("%.0s", oDoc.info.RifOrdini),
indi: util.printf("%.0s", oDoc.info.Codice_fornitore),
flip: namefile,
})

Do you think my problem regard it? i'd like to exclude only "rest" item_id
thanks Thom.

Adding intelligence to documents

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I'm a bit confused. The code above is for loading values into the dialog fields. It is not related to the tabbing order.

If this is a different question, and you want to remove and an item from the load function then do it. You can set it up any way you like.

But please, post to a new thread and give a clear and complete explaination.

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

lucianopilla
Registered: Oct 18 2007
Posts: 76
excuse me Thom,
i refer to the first question. I tried to put value for first_tab into top level of description and nextly to set values for next_tab but it doesn't work (TAB goes from the first to the ok button but jump all the others fields).
What's the problem about? i'm using Acrobat Professional 8.1.2.
I hope to was more clear.
P.S. about the default values of loadDefault method i thought the problem was depend on this but as you say i wrong.

Adding intelligence to documents

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Tabbing should be set up like this:

    description:{first_tab: "But2",name: "JSADM Dialog",elements:[{type: "button",item_id: "But1",name: "Button 1",next_tab: "ok",},{type: "button",item_id: "But2",name: "Button 2",next_tab: "But1",},{type: "ok_cancel",next_tab: "But1",},]

This is a simple 2 button dialog with an ok/cancel block. The code is incomplete, only the relevant part of the description entry is shown.

You might consider purchasing AcroDialogs, it would make all of this so much easier.

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

lucianopilla
Registered: Oct 18 2007
Posts: 76
Thanks thom, now it works perfectly.
i'll follow your advises.
Thaks a lot.

Adding intelligence to documents

juliel
Registered: Dec 30 2009
Posts: 15
Where does the above tabbing code get entered?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The code is part of a custom dialog definition. Here's an article on the topic if you are interested:

http://www.acrobatusers.com/tutorials/2006/popup_windows_part5

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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