how to get the field value? I write a javascript, but can't get field value.
var f = this.getField("DateTimeField1");
app.alert("val:"+f.value);
I find the text of the alert dialog is null. whether the function is not correct or have other function to get a field value in LiveCycle Designer by javascript.
var t = this.getField("textInput"); // the target field
var cResponse = app.response({
cQuestion: "What do you like about Acrobat?",
cTitle: "Favorite Acrobat feature!"});
{
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.