Howto: using vb.net change text fields (text boxes) data ???

L

Locke Nash Cole

I'm new to infopath and unable to find the exact correct method to change
text in a field on an infopath form. Can anyone help?

Using VS 2003 and the Inforpath Visual Studio Tools.

-L
 
S

S.Y.M. Wong-A-Ton

First you need to get to the correct node pertaining to the InfoPath field
using an XPath expression, and then set the "text" property on this node.
Something like

thisXDocument.DOM.selectSingleNode("//my:fieldToSet").text = "myValue"
 
J

Jack

The best solution is to use the functions in the common.js file
included with the samples you get with the Visual Studio Tools. There
is a function in that file called setNodeValue() which should handle
what you need to do.
 

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