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

Prompt user for some responses in a dialog

rocky
Registered: Jun 11 2009
Posts: 9
Answered

Hi all,

I post this question in another forum, but I want to post this question here too.

I run a batch script to extract pages on PDF file. Before extracting pages, the script will ask some questions to user first, and the user need to reply them by fill/type the answers in entry fields in dialog box/window.

For this stage, I want to create a kind of dialog box containing some questions which need to be replied by user. I have tried to use app.response() method, but it can only show one question and one entry field (for the user to reply the question) at a time.

By using this method, if I have 10 questions which need to be replied by user, I should use app.response() method ten times respectively.

Could I create one dialog window that can show several questions and entry fields in it at a time?

So the user could replied all questions at only one dialog window.

My second issue is entry field in the dialog box that showed up by using this app.response() method is just a regular textbox field. Could I create a dialog window (for getting user inputs) that can use dropdown field as entry field, instead of textbox field?

Any help is appreciated :)

Thank you.

Kind regards,

Rocky

My Product Information:
Acrobat Pro 8.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Acrobat JavaScirpt includes a 'dialog' object that can be used to create a 'form wizard' or a pop-up dialog with input fields and butttons. This is quite a complex object so you might want to look at the [url=http://www.windjack.com/products/acrodialogs.php]AcroDialogs[/url] tool provided by [url=http://www.windjack.com/]Windjack Solutions[/url].

You can read [url=http://www.acrobatusers.com/tutorials/2006/popup_windows_part5]Custom Dialog Boxes: Part 5 of 5 on Popup Windows[/url] by Thom Parker for a tutorial about the 'dialog' object.

I am not employed nor compensated by Windjacke Solutions.

Thom Parker is a valued participant of this web site and does provide content and responses to this web site and is involved with [url=http://www.windjack.com/]Windjack Solutions[/url] and [url= http://www.pdfscripting.com/]pdfscripting.com[/url]

George Kaiser

rocky
Registered: Jun 11 2009
Posts: 9
Thank gkaiseril for the idea.... :)
rocky
Registered: Jun 11 2009
Posts: 9
I have looked at the dialog object in Javascript for Acrobat API Reference document and I didn't found dropdown list field type available as element type that could be used in dialog box. The only element/field type which is similar to dropdown list that I found could be used as element type in dialog box is list-box field type.

Is it true that we cannot use dropdown field in dialog box?
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi rocky,

I think it's called "Popup Edit" in the ExecDialog Properties list. You can see an example of a dropdown list used in a custom dialog at
http://www.windjack.com/products/acrodialogs.php
Look at the Form Wizard Example on that page- it uses dropdown lists in the third dialog of the wizard.

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com
rocky
Registered: Jun 11 2009
Posts: 9
Thanks Dimitri for the input! :)
lasierrauniversity
Registered: Jun 18 2009
Posts: 1
nice posts everyone...thanks for all the info.

http://www.educatetruth.com