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

Unable to access form text field value..

srican
Registered: Nov 13 2008
Posts: 6

I constructed a simple form that has one text field called "CCEmail" and a button. On the MouseUp Event, I plugged in the following code..

app.alert(this.resolveNode("CCEmail").rawValue);

app.alert(this.getField("CCEmail").value);

However, I am not able to access the CCEmail field's value whether I use this.getField or this.resolveNode.

Note that I am on LivecycleDesigner and on Acrobat reader 9.0.

I get the following error

Acrobat EScript Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
Acrobat SOAP 9.0

resolveNode("CCEmail") has no properties
1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
resolveNode("CCEmail") has no properties
1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
this.form1[0] has no properties
1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
this.form1[0] has no properties
1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
this.resolveNode("CCEmail") has no properties
1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp

My Product Information:
LiveCycle Designer, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Does this work:

app.alert(CCEmail.rawValue);
George
srican
Registered: Nov 13 2008
Posts: 6
Thanks for your response, it worked.

It turns out that the field name is case sensitive :(

Thanks again.

SR.