<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: grab field value in code</title><link>https://www.infopathdev.com:443/forums/thread/14889.aspx</link><pubDate>Thu, 14 Dec 2006 15:41:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14889</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14889</wfw:commentRss><description>However, this only works with InfoPath 2007 :) I usually look at the data source task pane to construct XPaths - don't forget those namespaces!</description></item><item><title>Re: grab field value in code</title><link>https://www.infopathdev.com:443/forums/thread/14888.aspx</link><pubDate>Tue, 12 Dec 2006 09:02:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14888</guid><dc:creator>braegger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14888.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14888</wfw:commentRss><description>Hi Joel&lt;br /&gt;&lt;br /&gt;Ther is an other way. Open up the template in design mode. Then right click the field you want and choose "Copy XPath".&lt;br /&gt;&lt;br /&gt;Hope it helps...</description></item><item><title>Re: grab field value in code</title><link>https://www.infopathdev.com:443/forums/thread/14887.aspx</link><pubDate>Sat, 11 Nov 2006 11:52:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14887</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14887</wfw:commentRss><description>Hi again Joel,&lt;br /&gt;&lt;br /&gt;Finding of XPath of the field you could open the template.xml and you can prepare of your xpath from root node with the separation of slash "/".&lt;br /&gt;&lt;br /&gt;Check out this link you can get the more information,&lt;br /&lt;a target="_blank" href=http://www.w3schools.com/xpath/default.asp&gt;http://www.w3schools.com/xpath/default.asp&lt;/a&gt;</description></item><item><title>Re: grab field value in code</title><link>https://www.infopathdev.com:443/forums/thread/14886.aspx</link><pubDate>Fri, 10 Nov 2006 18:11:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14886</guid><dc:creator>joelallen123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14886.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14886</wfw:commentRss><description>I thought my:JobName was the XPath.  If not, is there a way to find it?</description></item><item><title>Re: grab field value in code</title><link>https://www.infopathdev.com:443/forums/thread/14885.aspx</link><pubDate>Fri, 10 Nov 2006 17:49:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14885</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14885</wfw:commentRss><description>Hi Joel Allen Welcome to the Forums,&lt;br /&gt;&lt;br /&gt;You need to give the field XPath should be correct. Can you check once again XPath of the your field.&lt;br /&gt;</description></item><item><title>grab field value in code</title><link>https://www.infopathdev.com:443/forums/thread/12980.aspx</link><pubDate>Fri, 10 Nov 2006 17:09:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12980</guid><dc:creator>joelallen123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12980</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I have this code where I am trying to retrieve the field value from my form and I am getting an error.  Do you see anything wrong with it?  I am new to java script, so please bear with me!&lt;br /&gt;&lt;br /&gt;var JobName = XDocument.DOM.selectSingleNode("my:JobName").text;&lt;br /&gt;&lt;br /&gt;The error says object required.</description></item></channel></rss>