-
MaatDeskAsked on May 9, 2025 at 2:17 PM
Hello, I have two text fields for a specific date format (MM/YY). Since the current date field in JotForm does not allow this format, I had to use this alternative. There is a widget that resembles this format, but I also cannot use it, as it is for an official document. So, I currently have two problems:
- I don't know how to validate that the date is valid. For example, I can enter "52/85" when the month should only go up to 12.
- The second and more important problem is that I need to validate that the second date field is not earlier than the first date field. Since they are text fields, this option does not exist.
So, how could you help me? I repeat, the format must be specifically MM/YY in numeric form. Thank you, and I look forward to your prompt response.
-
Alejandro JotForm SupportReplied on May 9, 2025 at 3:16 PM
Hi MaatDesk,
Thanks for reaching out to Jotform Support. I understand what you're trying to do, although I need a bit of time to look into this. We'll get back to you on this same thread as soon as we have an answer. We appreciate your patience and understanding.
Let us know if you have any other questions.
-
Alejandro JotForm SupportReplied on May 9, 2025 at 4:31 PM
Hi MaatDesk,
Unfortunately, this is not possible in the date picker field at the moment. The only possible way around this would be to use the date picker fields with the day included and add the conditions to have an outcome based on which date picker field is before or after. However, Jotform is constantly improving, so I have forwarded your case to our developers as a feature request. Although I cannot give you a time estimation or assure you if this will be implemented, rest assured, we'll reach out to you once we have an update.
Let us know if there is anything else we can help you with.
-
MaatDeskReplied on May 9, 2025 at 6:01 PM
There is no way, from what I could see, to take the datepicker and parse it to extract only MM/YY. Nor is there an option to validate that the date in a text field is comparable. In other words, is there no alternative at all?
-
Abdul JotForm SupportReplied on May 9, 2025 at 7:59 PM
Hi MaatDesk,
I’ve been thinking about a possible workaround that might help, though I’m not entirely sure if it fits your needs. Could you test this demo form and let me know how it works for you?
If it proves useful, here’s how I implemented it:
- I used a Short Text field to capture the value from the Date Picker field using the following condition:
- Then, I applied the Substring Widget to extract the MM/YY portion from the Short Text value. These were the settings I used:
- The Source Field ID refers to the Short Text field, and the Date Format was set to DD-MM-YYYY.
For more information, read our support guides to learn how to find a field’s ID, and how to pass a field value to another field. If this approach seems helpful, feel free to share more details about the full process you're trying to achieve, and we’ll be happy to provide further guidance.
Let us know if you have any questions.
- I used a Short Text field to capture the value from the Date Picker field using the following condition:
-
MaatDeskReplied on May 9, 2025 at 8:37 PM
The only inconvenient could be the default text format, since it is in english (mm/dd/yyyy and not dd/mm/yyyy) but it's a great option to explore. The issue is that i'm working with extremely important forms, i must respect everything as it is.
-
Christine JotForm SupportReplied on May 10, 2025 at 2:29 AM
Hi MaatDesk,
As of the moment the only workaround id the one provided by my colleague Abdul. While the feature you’re looking for isn’t currently available, rest assured we’re always working to add new services and features to Jotform. We already escalated your request to our Developers. When or if it's implemented depends on their workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know.
Let us know if there’s anything else we can help you with.
Your Answer
Something Went Wrong
An error occurred while generating the AI response. Please try again!