<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using JS</title><link>https://www.infopathdev.com:443/forums/thread/9509.aspx</link><pubDate>Mon, 10 Apr 2006 03:14:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9509</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9509.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9509</wfw:commentRss><description>Hi Sagiw and welcome to our forum!&lt;br /&gt;&lt;br /&gt;InfoPath comes with 25 out-of-box samples that include lots of JS. To access the script.js files for them, start InfoPath and choose Sample Forms (under Form Categories). Select one of the forms and click Design This Form in the left taskpane. For example, Service Request. Now, click File-&amp;gt;Extract Form Files and create a new folder somewhere where you can extract the files. Navigate to that folder in Windows Explorer. Right click on script.js file and choose open with Notepad. Search for Common Form Template Functions and copy everything from that comment down into the script.js file that you are using for your form. Now, you can use SetNodeValue like this:&lt;br /&gt;&lt;br /&gt;setNodeValue(XDocument.DOM.selectSingleNode("/my:myFields/my:field1"),'text');&lt;br /&gt;&lt;br /&gt;Have fun!&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Using JS</title><link>https://www.infopathdev.com:443/forums/thread/5516.aspx</link><pubDate>Sun, 09 Apr 2006 19:21:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5516</guid><dc:creator>sagiw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5516</wfw:commentRss><description>Hello, how are you?&lt;br /&gt;I wanted to knoe how can I insert information do a text box field using JS?&lt;br /&gt;Is it something like this?&lt;br /&gt;XDocument.field1.value="text";&lt;br /&gt;?&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;</description></item></channel></rss>