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

Acrobat dialog

vituperio
Registered: Dec 3 2007
Posts: 5

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
pddesigner
Registered: Jul 9 2006
Posts: 858
(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

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.