Date field rule - InfoPath Dev
in

InfoPath Dev

Date field rule

Last post 09-28-2015 12:25 AM by abiigdog. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-31-2015 01:41 AM

    Date field rule

    Hello

    I’m using InfoPath 2013

    I want to add  rule for a date field -that a person who pick a date couldn’t choose it and submit the form  if the date that he choose  is  less then 4 days ahead

    Someone have an idea how to do it ?



    Thanks

    Roy

     

     

  • 06-01-2015 10:51 AM In reply to

     Hi Roy,

     May be on the submit button you can set a formatting rule. Please see the attached sample.

     Kind Regards, 

    Reema Daga
    Qdabra® Software / InfoPathDev.com / FormsQuo / 425 999 4597 direct

    Business Process Automation for Everyone – Streamline data gathering to turn process into knowledge.™

     

  • 09-09-2015 12:47 AM In reply to

     Thank you for your answer .

    because Im  having  a problem with the margin (PX % issue) I couldn't put an "original" date field that stretch every time in outlook mail

    due to this im using only a regular text box that configuring in the data as - date

     

     you have another idea maybe?  

  • 09-28-2015 12:25 AM In reply to

     I would take the result of the chosen day and use the adddays function to it to add 4 days, call it DateCheck.

    Then on submit have a rule that checks if DateCheck is less then or equal to Today, send the user to another view explaining why they can't do that. Check the box in the rule to not run any remaining rules if that rule is true, and just be sure the submit rule is below it.

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