<?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: VbScript to clear default value onload of submitted Form</title><link>https://www.infopathdev.com:443/forums/thread/33392.aspx</link><pubDate>Thu, 23 Oct 2008 04:16:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33392</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33392</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In onLoad function you have to write the below code,&lt;/p&gt;
&lt;p&gt;if(!XDocument.IsNew)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;&amp;lt;XPath of the drop down field&amp;quot;).text = &amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>VbScript to clear default value onload of submitted Form</title><link>https://www.infopathdev.com:443/forums/thread/33381.aspx</link><pubDate>Wed, 22 Oct 2008 16:05:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33381</guid><dc:creator>Jeff3425</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33381</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have an InfoPath 2003 form that opens up a resource file.&amp;nbsp; I have a field that connects to that resource file and provides 3 options: 1)Optional - Please Select 2) Install 3) Do Not install.&amp;nbsp; The default value on the Data Source is essentially &amp;#39;XMLField3&amp;#39; where XMLField=InfoPathField and where XMLField2=InfoPathField2.&lt;/p&gt;
&lt;p&gt;The user selects either Install or Do Not install and submits the form.&amp;nbsp; When the user opens up the form to view it after submitting, the value of the infopath field reverts back to Optional-Please Select because of the default value.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here is what I want to accomplish - create a vbscript that says if the Form is not new, set the Default Value to blank.&amp;nbsp; This should in turn keep the submitted value.&amp;nbsp; Any thoughts?&amp;nbsp; Thanks!&lt;/p&gt;</description></item></channel></rss>