<?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: JScript (.js) Dropdown - How to clear the values?</title><link>https://www.infopathdev.com:443/forums/thread/62461.aspx</link><pubDate>Tue, 21 Dec 2010 12:50:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62461</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62461.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62461</wfw:commentRss><description>&lt;p&gt;Why not just set the value of the dropdown field to &amp;quot;&amp;quot; using a rule? Shouldn&amp;#39;t require code.&lt;/p&gt;</description></item><item><title>JScript (.js) Dropdown - How to clear the values?</title><link>https://www.infopathdev.com:443/forums/thread/62428.aspx</link><pubDate>Mon, 20 Dec 2010 14:30:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62428</guid><dc:creator>tsk_krish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62428</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a Infopath form containing a &amp;#39;Dropdown&amp;#39;&amp;nbsp;and &amp;#39;Clear&amp;#39; button controls.&lt;/p&gt;
&lt;p&gt;The Dropdown is populated using the secondary data connection.&lt;/p&gt;
&lt;p&gt;Now on click of the Clear button it needs to clear the drop down values through .js (JScript).&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want to hit the database again to run a dummy query to clear the values.&lt;/p&gt;
&lt;p&gt;THROUGH JSCRIPT (.JS)&amp;nbsp;HOW TO CLEAR THE DROPDOWN VALUES?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Krish TS&lt;/p&gt;</description></item></channel></rss>