InfoPath 2010 date picker with only future dates allowed
Learn how you can use InfoPath data validation rules to allow only future dates to be selected from an InfoPath date picker and InfoPath 2010 date and time picker.
There is a new feature in InfoPath 2010 called "quick rules", which you can use to quickly add a rule to a field or control on an InfoPath form.
You can also use a quick rule to quickly add an InfoPath validation rule to an InfoPath date picker that should only allow future dates to be selected, or to an InfoPath 2010 date and time picker that should only allow future dates and times to be selected.
Validating a date picker to allow only future dates to be selected is just a matter of comparing the current date with the date selected by the user in the InfoPath date picker.
While quick rules will shorten the time and clicks required to add an InfoPath validation rule, the type and amount of rules you can add using quick rules in InfoPath 2010 is limited.
So I'll also show you how you can modify or extend an InfoPath 2010 validation rule you added to an InfoPath form using a quick rule.
The following InfoPath 2010 tutorial video shows you how to use quick rules in InfoPath 2010 to add a validation rule to an InfoPath 2010 date picker that allows only future dates to be selected.
Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.
Related InfoPath Articles:
- InfoPath 2010 date and time picker control basics
- Calculate month difference in InfoPath 2010 using rules
- Calculate work days excluding holidays in InfoPath 2010 using SharePoint 2010 and Excel Services
- InfoPath 2010 date picker default value
- Auto-populate a drop-down list box with past and future dates