<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Action Rule - Set a field's value not working</title><link>https://www.infopathdev.com:443/forums/thread/119589.aspx</link><pubDate>Wed, 08 Aug 2018 19:06:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119589</guid><dc:creator>Priya05</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119589.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119589</wfw:commentRss><description>I found the solution.</description></item><item><title>Action Rule - Set a field's value not working</title><link>https://www.infopathdev.com:443/forums/thread/119587.aspx</link><pubDate>Wed, 08 Aug 2018 16:20:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119587</guid><dc:creator>Priya05</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119587</wfw:commentRss><description>I built a form to allow employees enter their hours in a bi-weekly time sheet. 

The field Date1 contains 1st day of every month, Date2 contains 2nd and so on.... Date15 contains 15th. I&amp;#39;m setting default value of Date1 to say August 1, 2018 and then setting the values of the succeeding dates using addDays(Date1,1), addDays(Date2,1)..... and for Date16, the value is set to addDays(Date15,1) but I&amp;#39;m hiding this control if this field does not contain 31. 

I have a field called Due Date (either 16th day of present month or 1st day of next month) that I&amp;#39;m trying to set based on the below condition:

If Date16 contains &amp;quot;31&amp;quot; 
       Action -&amp;gt; Set field&amp;#39;s value - addDays(Date16,1)  

If Date16 does not contain &amp;quot;31&amp;quot; 
       Action -&amp;gt; Set field&amp;#39;s value - addDays(Date15,1)

but the due date is shown blank in my form. How do I get this to work ?

Thanks !</description></item></channel></rss>