configuring that form "submit" only if it filing less then 7 days from the chosen date - InfoPath Dev
in

InfoPath Dev

configuring that form "submit" only if it filing less then 7 days from the chosen date

Last post 09-13-2015 09:02 PM by donstephen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-09-2015 12:12 AM

    configuring that form "submit" only if it filing less then 7 days from the chosen date

     Hello

    I am using -InfoPath 2013  

    I created a form that contain a date Field that you  must choose

    I need that the form  I created couldn't "submit" if it filing  less then 7 days from the chosen date

     please try to help me solve this issue

     

    thanks

    Roy 

     

    Filed under:
  • 09-13-2015 09:02 PM In reply to

    Re: configuring that form "submit" only if it filing less then 7 days from the chosen date

    Hi Roy,

    To my understanding, you would like to disable the submit button if today is less than 7 days from chosen date? would that be correct? If so,  could you check if this formula works for you?

    msxsl:string-compare(xdDate:Today(), xdDate:AddDays(my:field1, -7)) < 0

     where  my:field1 is the xpath to the dat field for the chosen date.

     Please let me know how it goes.

    Regards, 

    Don Stephen Lambatin / Support Engineer
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.