Hello,
I try to get values from an optien field into a variable in vbscript.
normally when i need the text out of a textbox I use :
sResult=XDocument.DOM.selectSingleNode(sPath+"SLFP4").text
this works fine.
Now I need the same for Option fields and tried
Result=XDocument.DOM.selectSingleNode(sPath+"SLFP5").value
Result was a failure.
Is there a property which I can use in this case ?
Please excuse my broken english, I´m just a stupid Kraut :)
Ralf Erdmann
Greg Collins [InfoPath MVP] - 10 Nov 2006 20:19 GMT
You are mixing HTML DOM and InfoPath DOM... You should only need to use the .text property to get the value of a DOM node.
sResult=XDocument.DOM.selectSingleNode(sPath+"SLFP5").text

Signature
Greg Collins [Microsoft MVP]
Visit Braintrove ( http://www.braintrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )