InfoPath 2010 date picker with only future dates allowed

Applies to: InfoPath 2010

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.

ADVERTISEMENTS

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.




 


Related InfoPath Articles:

 

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. 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.

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services