<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>How to set selected value in Dropdown programatically.</title><link>https://www.infopathdev.com:443/forums/thread/67160.aspx</link><pubDate>Wed, 08 Jun 2011 05:52:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67160</guid><dc:creator>Bhavin Sankhat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67160</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;nbsp; have dropdown list called SiteName in infopath form that fill through secondary datasource (Web services). There is six site name bind to this dropdown.&lt;/p&gt;&lt;p&gt;While opening the form on the form loading event I am checking programatically whether the logged in user has already site has been selected if yes then I get this site from database. Now The issue is:&lt;/p&gt;&lt;p&gt;1) I want to set the selected site to dropdown. If i used setvalue() it create new value in dropdown. I want to set value from existing dropdown source. How do i do that? can any one please help me. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>