Share feedback, ideas and get community help

Updated 5 months ago

Date Collect (Min and Max)

At a glance

The community member is trying to validate dates based on variables, specifically between two date fields (Date_1 and Date_2). They expected that when entering a date lower than Date_1 in Date_2 (which has Date_1 as the minimum value), the system would block it and say the date must be greater than Date_1, but this is not happening.

In the comments, another community member suggests that the fields only accept the yyyy-MM-dd format, so the variable would need to be formatted before use. Another community member is using Typebot to collect data and has variable date formats (e.g., mm/dd/yyyy and dd/MM/yyyy). They created a script to convert the entered date to yyyy-MM-dd format, which works when using the calendar, but not when manually entering the date.

There is no explicitly marked answer in the comments.

Hello everybody. I need some help.
I need to validate several dates, based on Variables. I did a quick test now (image) where I have two fields collecting Dates (Date_1 and Date_2).
According to the rule, what I expected would happen is, when typing a date lower than Date_1 (because in Date_2, I put the variable that stores the Date_1 information in the Min field), the system would block it, and say that the date must be greater than Date_1, however, nothing happens. That's how it works?

Thank you.
Attachment
Date_MinMax.png
B
e
3 comments
These fields only accept yyyy-MM-dd format so you'd need to format the variable before
I'm using Typebot to collect some data, and I have variable date formats (people who may be in the USA or other countries like Brazil). As a final result, I need to store the data in dd/MM/yyyy format. In my case (test computer), I type in the US mm/dd/yyyy format and the variable stores it in the final format. I made a script using Set Variable to create a new variable, which converts the value of the entered date to yyyy-MM-dd. Now it works, but only if I click on the calendar to enter the date. But if I manually enter the date, the system does not check it. Is correct?
Test results (one using the calendar and the previous date is blocked), another by entering a previous date
Attachments
Screenshot_2024-07-11_093104.png
Screenshot_2024-07-11_092905.png
Add a reply
Sign up and join the conversation on Discord