<?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: Invalid Date Validation</title><link>https://www.infopathdev.com:443/forums/thread/4324.aspx</link><pubDate>Mon, 26 Mar 2007 13:24:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4324</guid><dc:creator>soshan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4324</wfw:commentRss><description>Thanks for your help!!!&lt;br /&gt;Really appreciate it.</description></item><item><title>Re: Invalid Date Validation</title><link>https://www.infopathdev.com:443/forums/thread/4323.aspx</link><pubDate>Sat, 24 Mar 2007 14:36:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4323</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4323</wfw:commentRss><description>Hi Soshan and welcome to the forums!&lt;br /&gt;&lt;br /&gt;There is no easy way to disable certain dates from being input like you want, but you can do this with code.  To do this, double-click the date field, go to Data Validation tab, select OnBeforeChange event at the bottom, and then click edit form code.  Insert code here (using examples found from searching this forum) to read the date that the user inserted.  If it is not in the right time range, then add an error to the node and/or clear the value.  Make sure to pop up a message letting the user know what you're doing.&lt;br /&gt;&lt;br /&gt;You will probably want to add a note in your form to tell the users the dates they cannot enter.</description></item><item><title>Invalid Date Validation</title><link>https://www.infopathdev.com:443/forums/thread/1932.aspx</link><pubDate>Sat, 24 Mar 2007 14:22:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1932</guid><dc:creator>soshan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1932</wfw:commentRss><description>Hi,&lt;br /&gt;I'm a newbie to Infopath forms. I have a date field in my form, wherein the user can enter a date having some conditions. We have a requirement in which we need to disable some invalid dates as well as set a range of valid date values [e.g Date values can be entered from 'current year - 10 years'  to  'current year + 10 years']. Is there a manner in which I can disable some dates in the date picker for an infopath form?&lt;br /&gt;Thanks in advance.&lt;br /&gt;-Soshan.</description></item></channel></rss>