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

    Disable dates on the calendar depending on the selected choices from the other fields

    Asked by Andrea on August 07, 2013 at 01:44 PM

     I'm trying to make a form that takes  " travel reservations", this is a demo of what I need:

    http://form.jotformeu.com/form/32184408250347

     

    The problem is that on monday there is a tour, on tuesday there's another tour,on wedn another tour until sunday,total of 7 possible tours. I would need that the calendar let me choose to "forbid" or "allow" the days of week I want (for example,tour of monday, all "mondays" available, in the future,all other days unavailable). Is that possible?Now I'm using a free account but I could buy a premium/economy account if we can succeed the problem. Thank you

    Page URL:
    http://form.jotformeu.com/form/32184408250347

    problem jotformeu
  • Profile Image
    JotForm Support

    Answered by EltonCris on August 07, 2013 at 03:19 PM

    Hi Andrea,

    That's not possible in the form builder but we can help you provide custom workaround if we found any possibilities. Note that this requires form source code embedding since this involves modifying the scripts.

    So basically, what you want is that if it's a tour for monday, the calendar field should only allow all days under monday? Like this?

    Others can't be selected except days under Monday?

    I have 1 question though, how would you set if its for the monday tour and etc... do you match it to the current date (e.g. if today is monday, then calendar date should only display mondays?) or you wanted each form for each day tours? We need further details before we give this a shot.

    Thanks!

  • Profile Image

    Answered by andyxx on August 07, 2013 at 06:44 PM

    Hi EltonCris and thx a lot for support!I mean,it could be great if it could modify scripts and source code to implement this modifications! Yes,I would like a calendar similar to your sample, with others day that can't be selected. In the first message I made a deep syntex of the problem, now I try to explain myself better (it regrets me especially for english :) ). My original idea was a "drop down" menu with multiple choices (user choose one of the 7/8 tours ) before the calendar, once selected for e.g. tour1, "that happens" on Monday, calendar should show only Mondays, if selected tour2--->Tuesdays (...). 

    Some simple considerations/issues 1) it's important that the logical association should be "n" tour <---> day, not only 1 tour <---> 1 day, because sunday for example has availability of two tours; 2)it would be great if calendar would hide the "day after" (e.g. today it's 7/8/2013, calendar shows directly 9/8/2013 as first availability) 3)*optional/to confirm; due to paypal payment restrictions, calendar should show only one month after current date, for example, in my country it's 00.30 of 08/08/2013, calendar should show from 10/08/2013 to 10/09/2013. (for this point c), however,I'm trying to find a fix with paypal staff). 

    In case it's too complicated to make connection between drop down menu and calendar, I would also like 7 calendars, each with only one day of the week, and I would manually insert the "correct" calendar form to the relative tour. Hope I was clear enough, thank you so much,

    Andrea

     

    p.s.: the new,temporary form is here: http://form.jotformeu.com/form/32185691587365

  • Profile Image
    JotForm Support

    Answered by EltonCris on August 08, 2013 at 05:38 PM

    Hi Andrea,

    This seems a little complicated but let us try this and let you know what we can come up with this one. We couldn't promise you anything yet, this may take some time. We will just update you here once the script is ready.

    Thanks and sorry for the delayed response.

  • Profile Image

    Answered by andyxx on August 09, 2013 at 05:18 AM

    Dear EltonCris, I can immagine my idea can be very complicated in implementation. In my humble opinion, the possibility of using a "managed" calendar would be useful for a lot of users, not only for me, you must trust me when I say that I take a look everywhere online, and no one provides pre-configured, easy to implement, management, about this (so useful) feature.  I would really appreciate also a simplified version of the calendar I described, I mean, the 7 distinct versions of calendar with only one day of week available for each. (without implementing the connection between value on the drop-box--->calendar, without 2) and 3) options,etc. ). For me,an also better solution, for example, a practical (for end-users like me) implementation of a calendar which contains, in his "properties", the chanche to disable or enable days of the week (of course, as default options there would be all days enabled). Thx a lot anyway, firstly all my gratitude, 

    Andrea 

  • Profile Image
    JotForm Support

    Answered by EltonCris on August 09, 2013 at 11:59 AM

    Hi Andrea,

    I have started working on it and it may take some time to finished everything. I think it would be good if you could test and check the preview. I just finished the first tour option, I am using the dropdown then select calendar condition. 

    Here: https://shots.jotform.com/elton/test_calendar/Online%20Booking%20Form.html

    Kindly correct me if I am not doing it right. You should select first the "Tour 1" from the dropdown before you will be able to pull the calendar by clicking the calendar icon. There, you will see that all dates are disabled and can't be selected except all dates under "Monday" since you selected Tour 1 which is for Monday. Other tour options may follow, this is still in progress but it would be good if you could provide some feedback before I could complete this.

    Looking forward to your reply. Thanks!

  • Profile Image

    Answered by andyxx on August 13, 2013 at 09:33 AM

    Hi EltonCris, excuse me a lot for time,I had some problems with job, form is perfect!That's correct! To become perfect for me, there are 8 tours and tours #3 #4 take place on wednesday...thank you,

    A.

  • Profile Image

    Answered by EliezerN on August 13, 2013 at 01:56 PM

    Thanks for contacting us.

    Thanks to your reply and confirmation Elton will be able to follow up the workaround with your form once he  comes online. So, you will ge the update via this thread.

    Thanks.

  • Profile Image

    Answered by daveescam on April 23, 2014 at 01:08 PM

    Hello eltoncris , i was browsing the support forum because i am looking a way for the calender to disable choosing a date. For example if today is wednesday 23 i cannot choose today wednesday 23 nor thursday 24 only friday 25 and beyond, is there a way to this ?  Any help will be very helpful.

     

    thanks

    david