<?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: Hide section if DatePicker over 7 days</title><link>https://www.infopathdev.com:443/forums/thread/99198.aspx</link><pubDate>Fri, 19 Sep 2014 21:45:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99198</guid><dc:creator>Bre Huston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99198</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;The best way to accomplish that logic would be to use a helper field that stores the&amp;nbsp;date that the date picker should not exceed. On form load, the form would evaluate this value using the&amp;nbsp;addDays function. On form load you would set your max date to:&lt;/p&gt;&lt;p&gt;addDays(today(), 7)&amp;nbsp;&lt;/p&gt;&lt;p&gt;This value could then be used&amp;nbsp;to format a section to hide if the date picked is&amp;nbsp;greater than the max date.&lt;/p&gt;&lt;p&gt;Let me know&amp;nbsp;if this works for you, or if more details are needed.&lt;/p&gt;&lt;p&gt;Bre&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;a name="_MailAutoSig"&gt;&lt;/a&gt;&lt;b&gt;&lt;span style="color:maroon;font-size:10pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Bre Huston
| &lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span style="color:black;font-size:10pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Form Designer&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;a href="http://www.qdabra.com/" target="_blank"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:maroon;font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Qdabra® Software&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href="http://www.infopathdev.com/" target="_blank"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;InfoPathDev.com&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href="http://formsquo.com/"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:maroon;font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;FormsQuo&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; /&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:gray;font-size:9pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;877.544.2389 main / &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="color:gray;font-size:8pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;425.318.7843 direct&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-size:8pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt;Business Process Automation for Everyone&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;&lt;span style="color:black;font-size:8pt;mso-fareast-theme-font:minor-fareast;mso-no-proof:yes;"&gt; – Streamline data gathering to
turn process into knowledge.™&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&amp;nbsp;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Hide section if DatePicker over 7 days</title><link>https://www.infopathdev.com:443/forums/thread/99141.aspx</link><pubDate>Wed, 17 Sep 2014 01:40:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99141</guid><dc:creator>UserInterface</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99141</wfw:commentRss><description>I want to warn my users if they pick a date that is under the SLA of 7 days. 
I thought that I could hide a section that has a big red warning in it if the date that they pick is over 7 days from now but have been unable to work out how to do this.

Would anyone be able to help me? I have only just created one form with infopath so apologise if I am missing something simple or been asked before somewhere.

Thanks!!</description></item></channel></rss>