Two date selectors - restrict the second selector to the same month as the first? - InfoPath Dev
in

InfoPath Dev

Two date selectors - restrict the second selector to the same month as the first?

Last post 11-10-2011 03:52 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-10-2011 03:44 PM

    Two date selectors - restrict the second selector to the same month as the first?

    Is it possible? Thanks
  • 11-10-2011 03:52 PM In reply to

    Re: Two date selectors - restrict the second selector to the same month as the first?

    Well, you could add some data validation for this, I suppose - check that the years and months match (using substring functions to get the separate pieces of the date) - but it won't prevent the user from being able to pick a different date - just prevents him / her from submitting. You could also reset the field to blank if the date selected wasn't in the same month / year, and display a message about the need to select a date in the same month / year.

    There's a sample form here with some info on getting parts of date fields with substring functions.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.