<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Amending value depending on value selected in dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/102829.aspx</link><pubDate>Mon, 15 Jun 2015 17:31:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102829</guid><dc:creator>Mark B</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102829</wfw:commentRss><description>&lt;p&gt;&lt;i&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks, I&amp;#39;ll give that a go&lt;/font&gt;&lt;/i&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;OK I now feel really stupid,&amp;nbsp;could not get that to work! Do I apply the rule to the name field or&amp;nbsp;the price field?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Amending value depending on value selected in dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/102822.aspx</link><pubDate>Mon, 15 Jun 2015 05:29:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102822</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102822</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Mark,&lt;/p&gt;&lt;p&gt;As long as the XML file has the values as follows:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;&amp;lt;price-list&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;product&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;name&amp;gt;Apple&amp;lt;/name&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;price&amp;gt;&amp;nbsp;1.29&amp;lt;/price&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/product&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;product&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;name&amp;gt;Banana&amp;lt;/name&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;price&amp;gt;&amp;nbsp;2.37&amp;lt;/price&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/product&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/price-list&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You can use an action rule with a set value action to set the price based on the&amp;nbsp;value selected. Simply use a filter to set the value&amp;nbsp;equal to the&amp;nbsp;secondary data source price field with a filter which has the secondary data source value name on the left and the main data source field used for the dropdown on the right. &lt;/p&gt;&lt;p&gt;Good luck!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Amending value depending on value selected in dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/102821.aspx</link><pubDate>Sun, 14 Jun 2015 14:45:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102821</guid><dc:creator>Mark B</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102821</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Having returned to InfoPath after a long break, I was wondering if what I want to do is possible.&lt;/p&gt;&lt;p&gt;I have a dropdown box of products which is feed from an .xml file, what I would like to happen is once the user has selected the product the correct price appears in a separate box. (Price is also included on the .xml file). At the moment the user selects the product&amp;nbsp;from the dropdown and then has to manually enter the price.&lt;/p&gt;&lt;p&gt;Currently using InfoPath 2010&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance&amp;nbsp;for any help provided.&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;Mark&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>