How can I limit days when a date is submitted?

  • Profile Image
    Asked on July 02, 2012 at 01:23 PM

    There is a text box on my form that reads "Date needed". When the user inputs a date, I want to sure that they cannot input a date that is AT LEAST 10 business days from the date they submit the form. Is this possible? Thank you!

  • Profile Image
    Answered on July 02, 2012 at 08:52 PM

    Just to be sure I understand the requirement, you do NOT want the user to be able to select a date needed that is less than 10 business days after the date of the form's submission. In other words, the date needed can be 10 or more days after submission but NOT 9 or less, since you would need time to work on the request. Correct?

    If this is the case, the "Today's Date" field needs to be readonly to prevent users from being able to rollback the date. Otherwise, an unscrupulous individual could always select a date in that field that is 10 or more days earlier than the current date and enter the current date as the date needed! (Mind you, since the dates are based on the computer's clock, a user determined to "beat the system" could always set their computer's date to 10 days earlier before loading the form. There's no way to prevent that. We can only hope that no users would go to such extremes.)

    Also, since our conditions wizard currently has no method to restrict the values allowed in a field based on an existing or entered value in another field, the functionality you seek would only be possible if a copy of the form's full source were to be embedded into a web page and a script added to link the two fields' values.

    Incidentally, I noticed that the "Today's Date" field shows the time. Is that going to be a necessary component of any solution we provide? If it's necessary, the "Date Needed" field ought to also show the time, shouldn't it?