<?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>Set dafault value the same as previous record (with condition)</title><link>https://www.infopathdev.com:443/forums/thread/103293.aspx</link><pubDate>Fri, 17 Jul 2015 15:34:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103293</guid><dc:creator>markos17</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103293.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=103293</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;In my InfoPath 2010 form I have dropdown field &amp;#39;Project&amp;#39; and another dropdown &amp;#39;Priority&amp;#39;.&lt;br /&gt;I want to set default &amp;#39;Priority&amp;#39; value to the same as the last record with that project.&lt;br /&gt;example:&lt;/p&gt;&lt;p&gt;Project | Priority &lt;/p&gt;&lt;p&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&lt;/p&gt;&lt;p&gt;a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 30&lt;/p&gt;&lt;p&gt;b &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 5&lt;/p&gt;&lt;p&gt;I create another record, change &amp;#39;Project&amp;#39; value to &amp;quot;a&amp;quot; and the value of Priority suppose to set to 30.&lt;/p&gt;&lt;p&gt;I&amp;#39;m thinking about creating new datasource with sql query. Then set up new rule when changing &amp;#39;Project&amp;#39; and set &amp;#39;Priority&amp;#39; value.&lt;/p&gt;&lt;p&gt;Do You think, that there is some other way to achieve it?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>