Hello!
I just made my first real form with Infopath, and I want to add a field that will automatically generate a numeric code based on a name in a different text box. I found code that does this with a case statement. However, I am being told that "XDocument" needs to be declared.
Here is the line:
fieldProduct = XDocument.DOM.SelectSingleNode(
"/my:myFields/my:ProductName").text
I am using the Microsoft Visual Studio Tools for Applications, InfoPath 2007, and VBScripting. I've only just started learning different scripts for work, so I wouldn't be surprised if the solution is something simple.
Thank you!