<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set a textbox value with a dusaplyname of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/84994.aspx</link><pubDate>Sun, 02 Dec 2012 11:16:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84994</guid><dc:creator>daniweb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84994.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=84994</wfw:commentRss><description>&lt;p&gt;Some times you find a solution after posting a question...&lt;/p&gt;&lt;p&gt;I&amp;#39;m posting the answer for other to come, here we go:&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; add a rule for the button.&lt;/p&gt;&lt;p&gt;2, add an action of: &amp;quot;set a field&amp;#39;s value&amp;quot; in &amp;quot;rules menu&amp;quot;&lt;/p&gt;&lt;p&gt;3.&amp;nbsp; in field, look-up for the text-box in the main data source.&lt;/p&gt;&lt;p&gt;4. in value(pay good attention here) :&lt;/p&gt;&lt;ul&gt;&lt;li&gt;click the Fx&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;click insert a field or group&lt;/li&gt;&lt;li&gt;choose the data source that you used to fill the drop-down&lt;/li&gt;&lt;li&gt;click on the parameter that you used for the display name&lt;/li&gt;&lt;li&gt;click on filter data, pay attention again! Now you filter the data of the list&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ol&gt;&lt;li&gt;click add&lt;/li&gt;&lt;li&gt;click the fields data source(mine was value) that you used to display in the value of the drop-down.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;click is equal to&lt;/li&gt;&lt;li&gt;click select a field or a group, Pay attention again!&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;choose(again) the main Data source.&lt;/li&gt;&lt;li&gt;choose the drop-down.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;click ok 5 times!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Set a textbox value with a dusaplyname of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/84992.aspx</link><pubDate>Sun, 02 Dec 2012 10:29:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84992</guid><dc:creator>daniweb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=84992</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a drop-down, button and text-box. The Data of the drop-down is filled from a Share-Point list(but I don&amp;#39;t think this matters).&lt;br /&gt;&lt;/p&gt;&lt;p&gt;When I click the button, I want to fill the text-box with the display name of the selected value of the drop-down, I was able to fill only the value but not the display name, how can I do it?&lt;/p&gt;&lt;p&gt;I tried(in the set fields value):&lt;/p&gt;&lt;p&gt;&lt;font face="Calibri, sans-serif" size="2"&gt;dfs:dataFields/my:SharePointListItem_RW/my:FirstValue[@DisplayName]&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&lt;font face="Calibri, sans-serif" size="2"&gt;dfs:dataFields/my:SharePointListItem_RW/my:FirstValue[@Name]&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Calibri, sans-serif" size="2"&gt;dfs:dataFields/my:SharePointListItem_RW/my:FirstValue&lt;font size="2"&gt;/&lt;/font&gt;@DisplayName]&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&lt;font face="Calibri, sans-serif" size="2"&gt;dfs:dataFields/my:SharePointListItem_RW/my:FirstValue&lt;font size="2"&gt;/&lt;/font&gt;@Name&lt;/font&gt;&lt;/p&gt;&lt;p&gt;non of them work &lt;/p&gt;&lt;p&gt;Thank in advance for the help. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>