We help IT Professionals succeed at work.

Second date picker field to automatically jump to month selected in first date picker field

I have created a leave application form using Infopath. Users are complaining that when entering future dates in a Start and End date picker, they have to scroll through the date picker for both fields. They have requested the calendar for the endDate field automatically jump to the same month as the startDate after it is entered. My remedy was to set the default value for endDate to equal startDate. However, despite the form looking fine, when the completed form is re-opened, the endDate has reverted to the default value (startDate).
Comment
Watch Question

Director of Business Integration
Commented:
If you have InfoPath 2007, use the function adddays to add days to the date they pick for starting.
So put a rule on start date which is a setfield action and add however many days to the end date.

You probably don't wwant to have enddate default to start date, you want a rule which is conditional that only sets enddate if it is blank.

Author

Commented:
Unfortunately we have InfoPath 2003. Our Office 2010 disks arrived today, so we may look at upgrading soon. No way to do this in 2003 that you know of?

Author

Commented:
Thanks wasn't able to do it that way, but for anyone else wanting to do this using Infopath 2003, just write a rule setting DatePicker2 to the date selected in DatePicker1. Using a rule was the key point here

Author

Commented:
Ultimately helped me find the final solution.