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

    Conditional Logic for DateTime Field base on Day of the Week

    Asked by spartan02 on October 13, 2013 at 07:52 PM

    Hello,

     

    I know that the DateTime field can be used with conditional logic based on calendar dates.  Reference: (http://www.jotform.com/answers/225356-Using-DateTime-field-with-Conditional-Logic-based-on-current-date)

    I believe it would be useful if you can use the days of the week  as part of the conditional logic.

    For instance, If Today's Date is equal to "Sunday", then show X, Y and Z fields.

    Is this possible? Or can this functionality be added?

     

    Thank you.

    DateTime field Conditional Logic
  • Profile Image
    JotForm Support

    Answered by Welvin on October 14, 2013 at 03:32 AM

    Hi,

    You can define the dates that corresponds to Sunday. So for example, if the Sunday's date is October 20, 2013. You can have your conditional logic as follows:

    So if there are four (4) Sunday's in a month, you will have four conditional logic as well. NOTE that you can have dynamic dates as "today + 1" or "today - 1".

     

    Thanks

  • Profile Image

    Answered by spartan02 on October 14, 2013 at 11:15 AM

    Thank you.  This works, but I do not think it is not an efficient solution because it requires adding the specific date of every Sunday in a calendar year (or multiple years) if a person wanted to set up the conditions perpetually.  I have different conditions for each day of the week.  Therefore, I have to go through the entire calandar year and find the specific dates in order to use the solution suggested above.  Wouldn't it be easier so that we can say if today's date is equal to "Sunday", then show x,y and z fields? That way you don't have to set up conditions for each specific date.

     

    Please advise.

     

    Thank you.

  • Profile Image
    JotForm Support

    Answered by ardy0689 on October 14, 2013 at 12:43 PM

    Hello, I tried to come up with a direct workaround on this but I also came up with the exact solution what my colleague has given you. At the meantime JotForm has no feature like this for conditions based on Date Time field.

    There is a workaround which I can give you but it poses suspicion for your users as it uses PHP and modifying the Form ID url on the go. You will have to completely rely on the script and give them that link rather than the Form URL which gives user a feel of doubt regarding the authenticity of your forms.

    I could however escalate this for our development team to add this function on the future if this is what you want. Thanks

  • Profile Image

    Answered by spartan02 on October 14, 2013 at 12:45 PM

    Thanks for your efforts.  If you could escalate to the development team that would be great.

    Thank you!

  • Profile Image
    JotForm Support

    Answered by Welvin on October 14, 2013 at 01:07 PM

    Thanks for the additional information above. I have now added this thread to our feature request list. We cannot give you any details for the timeframe but, you should receive a notification via this thread for any progress made into this.

    Thanks for the idea!

  • Profile Image

    Answered by Stevenbuller on January 22, 2016 at 06:49 PM

    Please escalate this, I am trying to perfect a quoting system which will depend on the day of the week for our availability.  Please Please!
  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 23, 2016 at 01:40 AM

    Hi,

    I will assist you with your concern on this thread : http://www.jotform.com/answers/754009 

    Thanks.

  • Profile Image

    Answered by grade4pagasa on January 23, 2016 at 03:47 AM

    Hi everyone. 

    * I'm not a coder or designer, so please, pardon my logic and method.

    I achieved the desired end-result by using a conditional logic to test if the dateString() output contains a specified day of week (Mon, Tue, Wed, ...) and then showing only the appropriate fields with the day of week of the selected date. 

    Here's the demo form.

    Hope this helps. 

    - Randy

     

  • Profile Image

    Answered by grade4pagasa on January 23, 2016 at 04:05 AM

    Hi again, everyone ! 

    I just found based on the tip from Kevin_G from this post that the Day of Week functionality can be easily achieved now.

    Randy

  • Profile Image
    JotForm Support

    Answered by Welvin on January 23, 2016 at 06:54 AM

    Thank you, Randy. If you need help with something else, let us know by creating your own thread. http://www.jotform.com/answers/answer.php?

  • Profile Image

    Answered by grade4pagasa on January 23, 2016 at 07:40 AM

    Hi Welvin. 

    Nope, I don't need help on this issue. I just thought I could be of little help on this long-standing ticket that's been open for more than 2 years. 

    The primitive solution I shared is nothing compared to the awesome update in the Conditional Logic wizard's Day of Week functionality that was made known to us by Kevin_G on the other post I referenced. 

    Btw, I think it's high-time that you update this thread (screenshot of set expectation below) now that a permanent and effective solution is implemented by the Dev Team. 

    Randy

     

  • Profile Image
    JotForm Support

    Answered by Welvin on January 23, 2016 at 09:14 AM

    Actually, this is already marked as resolved to our end. But thank you for the help. That is greatly appreciated.

  • Profile Image

    Answered by grade4pagasa on January 23, 2016 at 10:38 AM

    Hi again, Welvin. 

    You wrote above that: 

    ... you should receive a notification via this thread for any progress made into this.

    I didn't see any update or notification on this thread about the Day of Week status. How will the Original Poster know that this thread is updated with the new progress?

    In my own threads, I still have tickets with Pending Status (I think, since there's no indication if a ticket is open, pending or closed) awaiting for update from the Dev Team. How will I know that an update is already in implemented or available? 

    Thanks for the clarification.

  • Profile Image
    JotForm Support

    Answered by Welvin on January 23, 2016 at 11:56 AM

    Well, our developers are responsible for updating tickets if they release something. It's either the assigned developer just marked this resolved or the other dev - all without putting something that would notify the original poster. We apologize for that case. 

    As for your own thread. I'm sure, those will be updated soon. If you think you are not updated, kindly reply to the thread so we can make a follow up.

  • Profile Image

    Answered by grade4pagasa on January 23, 2016 at 01:22 PM

    Yes, I've seen updates coming from the likes of Nicholas Westley, Paul Simpson, TitusN, Ertugrul and even Aytekin himself. 

    Maybe they're busy with all of the enhancements that's why the O.P. of this thread wasn't notified. 

    But it would be great if there's an indication that a thread / issue is still open or closed (from the users' viewpoint, we can't tell the difference 😊).

    Thanks for the clarification, Welvin.

  • Profile Image

    Answered by Stevenbuller on January 23, 2016 at 03:12 PM

    Thanks JotForm support for adding this functionality.  Much appreciated!

  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 23, 2016 at 08:40 PM

    Hi @grade4pagasa,

    Sure, we will do our best to keep you notified about the status of the features.

    Thank to you and @Stevenbuller for use JotForm.

    Feel free to contact us anytime if you need more help, we will be glad to assist you.

    Regards.