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

Custom dialog Boxes

adoacr
Registered: May 4 2011
Posts: 41

Hi,
 
Im looking to create a custom user name/password dialog box and looking for more information as to how to go about the task. I did get some information from the tutorial on this site - http://acrobatusers.com/tutorials/2006/popup_windows_part5
 
but need to do a better job of layout (username label and text field left-to-right but the username and password groupings being top=to=bottom) and marking the password field to show an alternate character (say '*') for the password characters. any idea where I can get some more information on this? my javascript code as it stands today is ;
 
description:
{
name: "Test Dialog",
elements:
[
{
type: "view",
elements:
[
{
name: "User name:",
type: "static_text",
},
{
item_id: "usnm",
type: "edit_text",
char_width: 15
},
{
name: "Password:",
type: "static_text",
},
{
item_id: "usnm",
type: "edit_text",
char_width: 15
},
{
type: "ok_cancel",
},
]
},
]

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Have a look at the Acrobat JS Reference file (app.execDialog()). There are various examples there and also instructions on how to create password input fields, and much more.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com