How can I make the date field not accept a past date?

Alessa
Mega Guru

Hello dear community, I need help:

Inside a task (in a workflow) I have the date field (where the user must place a date), I need that this field does not accept past dates, i.e. the user can only enter current dates (same day) or future dates, but not past dates (ex: July 15, etc).

Can someone please help me with this, thank you very much.

 

Please see the photo attached

1 REPLY 1

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Alessa 

Greetings!

Seems like this has to be applied on variables. Create catalog UI policy and select Applies on Catalog Tasks check box. for the catalog UI policy 

refer the below video:

https://youtu.be/gghIdFlxsDg

 

refer:

https://www.servicenow.com/community/developer-forum/date-field-to-only-allow-current-date-and-futur...

https://www.servicenow.com/community/developer-forum/restrict-date-variable-for-all-catalog-items-to...

If my response helped please mark it correct and helpful.

 

Kind Regards,

Ravi Chandra.