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.
Is it possible to populate time fields using conditional logic?Asked by betsay on May 01, 2015 at 07:01 PMHi what about for the time, I'd like when when I select an option in the dropdown automatically the time will be populated as well. for example I select 12 hours on the drop down, I want the time to automatically adjust itself and add current time + 12 hours.
I made some tests on my side and unfortunately I was unable to find a way to do this using conditional logic. I'll keep investigating to see if this is possible and I'll let you know if I'm able to find a way to do this.
There's also the option to use the full source code of your form to accomplish this using a custom script. If you're willing to use this method please let us know a bit more about how do you want your form to calculate the times and we can provide the script to do it.
Thank you raul, hope you can find the solutions for my inquiry
Unfortunately, after further testing I was still not able to find a way to do this using conditional logic.
Thus, the only way I can think of to accomplish this is by using the full source code of your form and a custom script like the one provided here: http://stackoverflow.com/questions/13034067/add-6-hours-to-current-time-and-display-to-page#13034220
As I mentioned earlier if you're up to try using the custom script we would need to know more details about what you want to accomplish so we can help you to build the script.