Disable dates before Today()

Hi guys,

For a date field, I would like to disable the dates before Today()

For now I can do something like this, placing a “Valid_if” expression, and showing a message when the date is before today():

image

But what I want to do, is that the user can not even select the dates before today().

is that possible?

As per my understanding, since the dates are displayed from calendar widget from OS /device, we may not have control over it.

  1. Are the request dates likely to have a very large range? Meaning, from today to next one or more years or say just today to today+ 1 month

  2. Will a somewhat crude non-elegant workaround do? So the dates option will not be from a calendar widget but from an enum?

If the date range is short( less than a month or so) and you are okay for a workaround, please explore creating an Enum with base type as the date and valid if , something like

LIST(TODAY(),

TODAY()+1,

TODAY()+2,

TODAY()+3,

TODAY()+4, …,

TODAY()+28,

TODAY()+29,

TODAY()+30)

2 Likes

Hi @Suvrutt_Gurjar

Thanks for taking time resplying, what I want is like these images below, only disable the days before the current system date.

image

Will that be posible using your suggestion…?

Hi @Geovany_Kelly ,

No, that will not be possible as per my understanding.

3 Likes

Noted, thanks @Suvrutt_Gurjar !

1 Like

You can try input formula in editable = isblank([date])