Setting a Default Date with InfoPath SP-1

InfoPath SP-1 has some nice features that are designed to help reduce the amount of coding and complexity within a form. In this example, I will show how to set the default date for a date picker to today.

  1. Open InfoPath and Design a new form
  2. Design a form with a data source that contains the following

  1. Design the form as follows

Once this form is completed and deployed. Whenever a user opens the form they can select the date from the drop down list box. With SP-1 the addition to functions and formulas to the default values, allows us to set the default date without any code.

  1. Select the properties of RequestDate

  1. Select the function button
  2. Select Insert Function

  1. Select the Today function

  1. Once selected the formula is then updated to the default value

The release of SP-1 for InfoPath provides a variety of new feature enhancements that are designed to reduce the complexity and coding needed within forms. This was a simple example of selecting the ‘today’ function. Of course, there are many more features and functions available.