What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Date Limit Options: Allow to use another date field as a reference to limit date

    Asked by kdevlin1983 on January 19, 2017 at 11:02 PM
    Have an end date selector that only allows or one or two weeks later on a Sunday.
  • Profile Image
    JotForm Support

    Answered by Chriistian on January 20, 2017 at 12:04 AM

    To allow selection of dates two weeks later on a sunday, you will need to setup a custom date range to disable. At the bottom of the Limits section, input the date range today>today+14. The value 14 refers to the number of days, so the range will be the current day plus two weeks later. You can use this in conjuction with the "Days of the week" and "Past & Future" limits in the datetime to only allow future sundays two weeks after the current date.

    On the Limits tab, scroll to the bottom to see the date range and input the range there. It should look like the image below:

    For more information about the Date limits, you can also check out this guide: How to Use the Date Limits Option

    Regards.

  • Profile Image

    Answered by kdevlin1983 on January 20, 2017 at 12:41 PM

    Thank you. However, this will limit the select to two weeks past the current date, but I need it to limit the selection two weeks past the Start Date (if I am using two date/time fields, one for start and one for end date). Is there a way for the form to autopopulate the end date based on the start date selection and then limit it to 14 days?

  • Profile Image
    JotForm Support

    Answered by Charlie on January 20, 2017 at 02:48 PM

    Unfortunately, the date limits cannot be dynamically set using a different date field. However, I did I try to look for a workaround using the Conditional logic, unfortunately it was not successful. 

    However, I think this is a good feature, I'll forward this to our developers as a feature request. Please note that we cannot guarantee that this will be implemented. It depends on the current workload and its feasibility. But we will update you on this thread as soon as we hear any news. 

    Thank you.