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.
How to display a date in a textbox based on a selection from a dropdown field?Asked by kranai on May 21, 2016 at 10:18 AM
How do I display a text string in a text box if some condition is met.
Let say my text box is called "Event Date"
I will insert the condition in my form as follows:
If "Seminar Title" is Equal to "Creating Abundance" (for example)
Display "26th May 2016" into Event Date
Basically I want to populate "Event Date" with the date of the seminar based on the Seminar Title selected.
Do you want to populate a date field? If so, you can do it this way:
1. Add a new DateTime field in the form and set the default date to May 26, 2016.
2. Add a conditional logic to copy this new date field to the target DateTime field when seminar title is equal to your desired value. Here's a sample condition that you should add:
You can test it here: https://form.jotform.com/61404080498960.
Note that you can simply hide some fields that you don't want to show up in the live form view.
I'm sorry for misunderstanding your question. To populate a textbox with a date, you can just do it this way:
1. Assuming that you already have the textbox in the form, simply add the following condition:
Make sure that you've added the value as a text. It should be in light brown background.
You can see the output in the test form that I've shared in my first reply.
You're welcome. Please contact us again if we can help in any way.