<?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: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/103794.aspx</link><pubDate>Tue, 01 Sep 2015 02:19:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103794</guid><dc:creator>benny.mcpherson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=103794</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks, worked for me.&lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77145.aspx</link><pubDate>Tue, 03 Apr 2012 20:18:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77145</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77145</wfw:commentRss><description>The concept should be similar with an expression box.&amp;nbsp; Instead of using a validation rule, you can use the formatting rule the same way and make the background red or something.&amp;nbsp; Sorry I&amp;#39;m not sure what your exact scenario here is, so I&amp;#39;m making a few assumptions in my explanations :)</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77132.aspx</link><pubDate>Tue, 03 Apr 2012 17:26:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77132</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77132.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77132</wfw:commentRss><description>&lt;p&gt;Thank you very much for the detailed instructions, but sadly,&amp;nbsp;these are expression boxes. I can&amp;#39;t select them from the AddDays picker. Maybe I need to approach this from a different perspective. Should I create a text field and then try to associate it?&lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77126.aspx</link><pubDate>Tue, 03 Apr 2012 17:01:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77126</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77126</wfw:commentRss><description>&lt;p&gt;Sure I can walk you through it.&amp;nbsp; I&amp;#39;m assuming both are date fields that are bound to date pickers.&amp;nbsp; Here&amp;#39;s what you need to do:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Click on the first date picker.&lt;/li&gt;&lt;li&gt;Open up the Rules Manager (Home -&amp;gt; Manage Rules)&lt;/li&gt;&lt;li&gt;Add a validation rule.&lt;/li&gt;&lt;li&gt;Click on the condition which will bring up a dialog&lt;/li&gt;&lt;li&gt;For the left dropdown, select the first date field.&lt;/li&gt;&lt;li&gt;For the middle dropdown, select is less than.&lt;/li&gt;&lt;li&gt;For the right dropdown, select use a formula.&lt;/li&gt;&lt;li&gt;Click Insert Function --&amp;gt; Date category -0&amp;gt; addDays --&amp;gt; OK&lt;/li&gt;&lt;li&gt;Double click on the first field and select the second date.&lt;/li&gt;&lt;li&gt;Double click on the second field and type in &amp;quot;-30&amp;quot;.&lt;/li&gt;&lt;li&gt;OK out of all the dialogs&lt;/li&gt;&lt;li&gt;Make sure you enter a ScreenTip otherwise the rule won&amp;#39;t work.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77121.aspx</link><pubDate>Tue, 03 Apr 2012 16:41:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77121</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77121</wfw:commentRss><description>&lt;p&gt;I apologize, I follow what you are saying, just not sure how to write it. Would it be something like (@Created) +31. I tried this,&amp;nbsp;and it passes the formula checker but it does not make it go red. &lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77117.aspx</link><pubDate>Tue, 03 Apr 2012 16:27:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77117</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77117.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77117</wfw:commentRss><description>Then it should just work if you use that date directly from SharePoint instead of parsing it the way you do.&amp;nbsp; Try that and see if that works for you now.</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77116.aspx</link><pubDate>Tue, 03 Apr 2012 16:20:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77116</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77116</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s pulling the created date from a SharePoint list. I had to set it up this way because in a new form, there is no created date. So the field is hidden. However, if after its creation the form is opened by a user, the created field is displayed. Then there is the Expiration field. It too has the same hidden condition because with a new form there is no expiration. Again, once opened it displays a Created Date + 30 days value. What I am trying to do is have it display, but on the 31st day, make it go red. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope that better explains things. &lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77115.aspx</link><pubDate>Tue, 03 Apr 2012 16:15:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77115</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77115</wfw:commentRss><description>&lt;p&gt;What exactly are you using to create your date field?&amp;nbsp; In my formula all you need is just a simple date for it to work.&amp;nbsp; You don&amp;#39;t need to parse the different parts separately.&lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77108.aspx</link><pubDate>Tue, 03 Apr 2012 14:53:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77108</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77108</wfw:commentRss><description>&lt;p&gt;Thank you for your explanation. Sadly, I am still struggling a bit. Perhaps a little more explanation may be helpful. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Created:&lt;/strong&gt; (Expression Box) concat(substring(@Created, 6, 2), &amp;quot;/&amp;quot;, substring(@Created, 9, 2), &amp;quot;/&amp;quot;, substring(@Created, 1, 4))&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Expired:&lt;/strong&gt; (Expression Box) addDays(@Created, 30)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Within the Expired box I am&amp;nbsp;adding the Condition. It seems I can either get the font to always be black (default) or always red. :(&amp;nbsp; The always red setting is configured as follows; &lt;/p&gt;
&lt;p&gt;If this Condition is true:&lt;br /&gt;&amp;nbsp; Created&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is Greater Than&amp;nbsp;&amp;nbsp;&amp;nbsp; adddays(@created, -30)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve got to be close, it&amp;#39;s just not seeing or utilizing the date.&amp;nbsp;It should only go red on the 31&amp;#39;st day. &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77068.aspx</link><pubDate>Mon, 02 Apr 2012 19:44:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77068</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77068</wfw:commentRss><description>You need to add conditional formatting to your date picker.&amp;nbsp; The formula you will use will look something like if date1 &amp;lt; addDays(date2, -30).&amp;nbsp; You&amp;#39;ll have to play around with the number to get it exactly how you want it, but that&amp;#39;s the general idea.</description></item><item><title>Conditional Format with Date (if more than 31 days, change color to RED)</title><link>https://www.infopathdev.com:443/forums/thread/77059.aspx</link><pubDate>Mon, 02 Apr 2012 16:41:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77059</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77059</wfw:commentRss><description>&lt;p&gt;I have two fields. One displays a created date. The second is an expression field that looks at the created date, adds 30 days and displays that date. What I want is for the expression box to go red if the count is 31 days or more. What is the best way to accomplish this? &lt;/p&gt;</description></item></channel></rss>