Declaring Values in Textbox using VBScript in Infopath

V

Vin

How can I declare a certain text / value in a textbox that I created in an
Infopath Form? Here is my current code wher I keep on getting an error
"Reference to undeclared namespace prefixes: 'my'"

Thanks
 
K

K.Ramana Reddy(GGK Tech)

Hi,

Use below code to set the value or text for text box field.


XDocument.DOM.selectSingleNode("Xpath of text box field").text="value"

Example:
XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text="xxxx"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top