- spartan02Asked on October 13, 2013 at 07:52 PM
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?
- JotForm SupportWelvinAnswered on October 14, 2013 at 03:32 AM
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".
- spartan02Answered 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.
- JotForm Supportardy0689Answered 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
- spartan02Answered on October 14, 2013 at 12:45 PM
Thanks for your efforts. If you could escalate to the development team that would be great.
- JotForm SupportWelvinAnswered 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!
- JotForm SupportKevin_GAnswered on January 23, 2016 at 01:40 AM
I will assist you with your concern on this thread : http://www.jotform.com/answers/754009
- grade4pagasaAnswered on January 23, 2016 at 03:47 AM
* 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.
- grade4pagasaAnswered 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.
- JotForm SupportWelvinAnswered 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?
- grade4pagasaAnswered on January 23, 2016 at 07:40 AM
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.
- JotForm SupportWelvinAnswered 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.
- grade4pagasaAnswered 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.
- JotForm SupportWelvinAnswered 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.
- grade4pagasaAnswered 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.
- StevenbullerAnswered on January 23, 2016 at 03:12 PM
Thanks JotForm support for adding this functionality. Much appreciated!
- JotForm SupportKevin_GAnswered on January 23, 2016 at 08:40 PM
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.