Limit date picker calendar to two weeks - InfoPath Dev
in

InfoPath Dev

Limit date picker calendar to two weeks

Last post 07-14-2013 11:46 PM by junjun. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-13-2013 10:05 PM

    • junjun
    • Not Ranked
    • Joined on 07-13-2013
    • Posts 2

    Limit date picker calendar to two weeks

    Hi, I want to set up my date picker calendar to two weeks from today. The idea is to keep users from picking dates beyond two weeks from whatever the present day. It should be fairly easy formula, but I am quite new to this and can't figure it out and can't seem to find any examples. I am using info path 2010. Hope someone can help, thanks.
  • 07-14-2013 02:27 PM In reply to

    Re: Limit date picker calendar to two weeks

    Create a validation rule with a condition that is "The expression" with the following value: translate(my:Date, ":-T", "") > translate(xdDate:AddDays(xdDate:Today(), 14), ":-T", "")

    Patrick Halstead
    Project Manager at Qdabra
  • 07-14-2013 11:46 PM In reply to

    • junjun
    • Not Ranked
    • Joined on 07-13-2013
    • Posts 2

    Re: Limit date picker calendar to two weeks

    Perfect! Thank you so much!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.