How to add days into date picker from today's date?

  • Profile Image
    uldfire
    Asked on July 18, 2018 at 06:21 PM

    We have two forms. On those forms, we have a section for the client/form filler to submit a requested date to have their project back. We need to have that date automatically, daily changed for 35 days from today's date/the date they complete the form. 

     

    For Example, if the client is completing a form today requesting their project to be due  - the first day they should be able to enter in that field should be August 22. 

     

    Please let us know how we can accomplish this.

     

    Thank You! 

  • Profile Image
    Jed_C
    Answered on July 18, 2018 at 07:57 PM

    Here's how to add 35 days to your date picker from today's date.

    1). Create two date picker

    2). The first date picker can be hidden so users won't see it on your form

    3). On the first date picker, go to properties > Options tab > Set "Default Date" to "Current".

    4). Create a condition that if first date picker is field, update the value + 35 days and send that value to your 2nd date picker.

    I've made a screencast for you to follow. Here's the link https://screencast-o-matic.com/watch/cFiF0MFETq.

    Let us know if you have any questions or if you need further assistance. 

  • Profile Image
    uldfire
    Answered on July 25, 2018 at 03:19 PM

    Need help ASAP. this is not working correctly. it starts with the date of January 1970. So clients have to scroll through 42 years to correctly pick a date. Help please. Can we chat?

  • Profile Image
    uldfire
    Answered on July 25, 2018 at 03:28 PM

    this is what it looks like. to be clear - it should not. 

    1532546861--jotform 7-25-18.PNG

  • Profile Image
    Jed_C
    Answered on July 25, 2018 at 03:42 PM

    You forgot to add the "Hidden date" field + 35. It should be like this.

    1532547571The Easiest Online Form Builde

    Currently, your calculation only shows + 35. Please follow exactly what is shown in this video https://screencast-o-matic.com/watch/cFiF0MFETq.

    Here's your cloned form https://form.jotform.com/82056581949973 with the calendar + 35 days added to it.

  • Profile Image
    Jed_C
    Answered on July 25, 2018 at 04:22 PM

    You have used an incorrect declaration for + symbol.

    1532550143The Easiest Online Form Builde

    I have fixed your form. Please check it again.

  • Profile Image
    uldfire
    Answered on July 31, 2018 at 02:22 PM

    The form is allowing customers to type in or choose a day before the 35 days. We don't want them to have that option. Please advise. 

  • Profile Image
    Jed_C
    Answered on July 31, 2018 at 03:55 PM

    Please test this form https://form.jotform.com/82056581949973 and see if that is what you are trying to achieve with date picker field.

    So far, it disabled the past dates and only allows dates after 35 days.

    Sample screencast:

    1533066881date_picker.gif

    Looking forward for your response. 

  • Profile Image
    uldfire
    Answered on July 31, 2018 at 04:50 PM

    YES! This works! How can we make this happen on our form? 

  • Profile Image
    Jed_C
    Answered on July 31, 2018 at 05:46 PM

    You won't be needing the hidden field and condition based on my test so please delete both.

    1533073199dp_condition.png

    1533073228dp_hidden_field.png

    You only need two things to make this work.

    1). Click on the Date Picker field > Click on Properties > Click on Limits Tab > Under "Start & End Date" add "today+35"

    1533073379dp_startdate.png

    2). Last option is to set the "Disable Past Dates" to "Yes" under Advanced tab.

    1533073474dp_pastdates.png

    I hope this helps. Let us know if you have any questions or if you need further assistance. 

  • Profile Image
    uldfire
    Answered on August 01, 2018 at 12:10 PM

    This seems to be working now. Thank you!