Hi Javs, you could use a widget with conditional visibility that shows up with the warning message. It would be enabled if the date selected is compared to today/current date. You can make use of the “variable transformation” variables to formulate the logic
Thank you !! can you please specify which widget you are referring for.
I tried using section conditional visibility but this will not hold user from entering the date he can close the section or without closing continue giving the date right?
As JulioM mentioned one approach would be check if user entered day is after current day by using variable transformation. Create date variable that stores current day and another boolean variable using variable transformation, which compares if entered date variable is incorrect (on or before current day). This way value will be “false” when no date is entered. Depending on your situation you can choose to check if entered date is correct, but that would give you “false” value when there is no date selected in date picker. If using date and time widget and comparing only by date this would look like this:
Then you can create section below date picker with markdown widget or similar inside section and add error text to it. Configure section to be visible only when data is incorrect.
I am thinking as below…please correct me if my thinking is wrong.
date entered by user – yesterday date
current date – today
the validation is user entered past date.
for which the Boolean variable got true
conditional visibility section got enabled. showing message please enter valid date.
here the section got visible but it not stopping the user from submitting with the yesterday’s date, he can continue the flow selecting other options and submit.
I am thinking the section will be conditionally visible and also user should not proceed further without entering the proper date.
This means I need to add another validation to the next button and trigger event only when the boolean variable if false? am i right ?