Accessing Infopath Form Data

H

H-R

I want to show the typed value of a field in Infopath form in VBScript
written for a button. I took the following error message with sample codes:
"Object Required"
 
H

H-R

I use MS Office Infopath 2003, and wrote the following script:

var NameField = XDocument.DOM.selectSingleNode("//my:Datafields");
if ( NameField.text == " ") /* Error Object Required
...
 
Top