Pre-Setting the Date picker to the future that can not be changed.

  • bakingfresh
    Asked on June 22, 2015 at 4:51 PM

    Hi,

     

    I want to have a date picker on my order form that is pre-set in the future and that can not be changed by the user.

    (This calender/date picker on my form is going to be used to show the customer which date there product is going to be delivered, which is always 2 days after they they place there order.)

    When a customer places an order using my jotform form,  I want the calender/date picker to display at date that is 2 days in the future. So for example, today is the 22nd of june, if someone user my form today, they calender/date picker will show the "24th June 2015".

     

    So it will read:

    Your first box will be delivered on...

    *date picker goes here and will always show the date that is 2 days in the future.*

     

    Many Thanks

    Stephen

    Jotform Thread 594127 Screenshot
  • David JotForm Support Manager
    Replied on June 22, 2015 at 8:10 PM

    Please follow this steps:

    1) Add two Date-Time fields:

    2) On one of them, click on the gear Icon and Hide it.

    3) Click on the Default Date button above and set it to Current.

    Pre Setting the Date picker to the future that can not be changed Screenshot 50

    4) Click on Conditions, and select Update a Form Field Value:

    Pre Setting the Date picker to the future that can not be changed Screenshot 61

    5) Create a condition like this:

    Pre Setting the Date picker to the future that can not be changed Screenshot 72

    It will show the date two days ahead of the current date:

    Pre Setting the Date picker to the future that can not be changed Screenshot 83

    Here is my demo form: http://form.jotform.co/form/51656963667875

    You can clone it in your account to inspect it further: http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps, let us know if you have more questions, we will be glad to assist you.

  • bakingfresh
    Replied on June 23, 2015 at 7:18 AM

    Hi

     

    Thank for this

    The only issue I am having it with now I want to set it up so it's "read only". I have been on settings, properties setting and changed it too "read only" but when I select this the "Conditions" I have set up above stop working.

     

    Many Thanks

    Stephen

  • Boris
    Replied on June 23, 2015 at 9:18 AM

    Stephen, I believe that the problem is in how you've set up the condition. I can see that the condition is written If this field is empty. I have just added a rule:

    If the field is empty, OR if the field is filled, and then set up the Read Only property.

    Pre Setting the Date picker to the future that can not be changed Screenshot 30

    (Use the Add New Rule button at the bottom left.)

    Pre Setting the Date picker to the future that can not be changed Screenshot 41

    You can see it in action, here: http://form.jotformpro.com/form/51733981483968

    Please let us know if you need further assistance.