<?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>Re: Date Calculations with Conditions</title><link>https://www.infopathdev.com:443/forums/thread/77037.aspx</link><pubDate>Fri, 30 Mar 2012 18:53:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77037</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77037</wfw:commentRss><description>&lt;p&gt;If you attach your form under the Options tab, I can take a look - usually if rules with conditions aren&amp;#39;t firing it is a problem with the conditions - you could try removing those and see if the rules fire when you expect and then work from there...&lt;/p&gt;</description></item><item><title>Re: Date Calculations with Conditions</title><link>https://www.infopathdev.com:443/forums/thread/77036.aspx</link><pubDate>Fri, 30 Mar 2012 18:47:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77036</guid><dc:creator>Tanya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77036</wfw:commentRss><description>&lt;p&gt;The rules aren&amp;#39;t firing at all.&lt;/p&gt;</description></item><item><title>Re: Date Calculations with Conditions</title><link>https://www.infopathdev.com:443/forums/thread/77035.aspx</link><pubDate>Fri, 30 Mar 2012 18:36:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77035</guid><dc:creator>Tanya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77035</wfw:commentRss><description>&lt;p&gt;I have tried the rules in RenewalPeriod, and also in RenewalDate (seperately). I&amp;#39;ve checked the conditions and they appear to be fine (matching case and spelling). I will try putting the conditions under both CompletionDate &amp;amp; RenewalPeriod and see what happens. will get back to you.&lt;/p&gt;</description></item><item><title>Re: Date Calculations with Conditions</title><link>https://www.infopathdev.com:443/forums/thread/77034.aspx</link><pubDate>Fri, 30 Mar 2012 18:08:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77034</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77034</wfw:commentRss><description>&lt;p&gt;Hi - what field are you adding the rule to? Rules fire when the field they are on changes.... It looks like you would want this rule on the RenewalPeriod field and on the CompletionDate field. If that&amp;#39;s where the rules are now, and they aren&amp;#39;t firing, it could be because the value of the RenewalPeriod field is not meeting your conditions (case could be different, it could be bound to a drop down and have a different value than display, etc).&lt;/p&gt;</description></item><item><title>Date Calculations with Conditions</title><link>https://www.infopathdev.com:443/forums/thread/77033.aspx</link><pubDate>Fri, 30 Mar 2012 18:00:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77033</guid><dc:creator>Tanya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77033</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to figure out how to use the addDays() function within rules. The reason for this is I require a different number of days to be added depending on the result of another field.&lt;/p&gt;
&lt;p&gt;I have a StartDate, CompletionDate, RenewalPeriod and RenewalDate field.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I need the RenewalDate to have a different number of days added based on the result in RenewalPeriod.&lt;/p&gt;
&lt;p&gt;If RenewalPeriod says Annual, the addDays rule should be addDays(CompletionDate, 365)&lt;/p&gt;
&lt;p&gt;Renewl Period is Bi-Annual, the add Days rule should be addDays(CompletionDate, 730)&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, when I enter this information into the rules, I get no response in the field. Anyone have any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>