Calendar past date selection error display
-
Hello!
[Date Time]
I want to control the date selection.
Is there a way to display an error [Invalid Dates] when I select a date earlier than the start date (fieldname1) in the DateTimePicker of the end date (fieldname2) after I select the start date (fieldname1)?
-
Hello @tsubakuma
Thank you very much for using our plugin. You only must enter fieldname1 through the “Min date” attribute of the fieldname2 field.
Best regards.
Really great plugin !!!
Hello.
I’m sorry if it’s a basic question, but please let me know.
How can the end date (fieldname2) be the day after the start date (fieldname1) (+1d)?
I want to avoid fieldname1=fieldname2.The current settings are as follows.
Min date for fieldname1 is (10d), Max date is (1m + 10d)
Min date for fieldname2 is (fieldname1), Max date is (1m + 10d +1d)Hello @tsubakuma
You cannot enter operations in the date fields’ settings. So, you need to use a calculated field as an auxiliary.
Insert a calculated field in the form (I’ll assume it is the fieldname3), and configure it as follows:
- Tick the “Exclude from submission” checkbox in its settings.
- Tick the “Hide Field From Public Page” checkbox.
Now, assuming your date fields have the format dd/mm/yyyy
3. Enter the equation
CDATE(fieldname1+1, 'dd/mm/yyyy')Finally, in the settings of the fieldname2, enter the name of the calculated field (in this example, fieldname3) in the “Min date” attribute instead of the fieldname1.
Best regards.
Great, I’ll try it tonight !
Thank you !Hello.
I tried setting “CDate(fieldname1+1, ‘yyyy/mm/dd’)” you told me to [Set Equation], but it doesn’t work.
I checked only the following.
Exclude from submissions
Hide Field From Public PageAm I doing something wrong?
Hello @tsubakuma
Please, include the link to the page that contains the form to check your code in action.
Best regards.
Can you tell with just the information below?
Min date for fieldname1 is (10d), Max date is (1m + 10d)
Min date for fieldname2 is (fieldname142), Max date is (1m + 10d +1d)[Set Equation] for fieldname142 is “CDate(fieldname1+1, ‘yyyy/mm/dd’)”
-
This reply was modified 2 years, 10 months ago by
tsubakuma.
Hello @tsubakuma
You included the link to the form edition. I’m referring to the public page on your website with the form inserted.
Best regards.
Is this alright?
Hello @tsubakuma
Your form is working fine. The min date in the second date field is a day after the value in the first date field. Please, watch the video by visiting the following link:
https://resources.developers4web.com/cff/tmp/2023/07/25/video-form_o.mp4
Please, note we are not allowed to support any customers in these forums, and you have installed a commercial version of our plugin.
For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.
Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.
Thank you.
Now it works with double quotes.
CDATE(fieldname1+1, “yyyy/mm/dd”)
Excellent !!!!
Best regards.
The topic ‘Calendar past date selection error display’ is closed to new replies.