Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-03 05:20:45

vituperio
Member
Registered: 2007-12-03
Posts: 2

Acrobat dialog

Is there a way to capture the information from an Acrobat Dialog? For example, is there a way to capture a string from the Acrobat Dialog that appears when I verify a signature?


My Product Information:
Acrobat Pro 8 / Windows

Offline

 

#2 2007-12-03 08:18:12

pddesigner
Member

Registered: 2007-04-24
Posts: 55

Re: Acrobat dialog

(1.) Create a text field named - textinput

(2.) Copy, modify, and paste this javascript code to an event ( button -mouse up, page open, button - mouse enter, etc.)


var t = this.getField("textInput"); // the target field
var cResponse = app.response({
cQuestion: "What is your full name?",
cTitle: "Name in signature field"});
{
if ( cResponse == null)
app.alert("Please complete the question."); // if Cancel is selected
else
app.alert("You responded, \""+cResponse+"\", is this correct?",2);
}
t.value = cResponse; // places the data from the dialog to the target field

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in