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 = ...