How can I limit a DATE field from being populated with invalid dates

Hola Ola
Giga Guru

Happy Friday All, 

 

How can I prevent users from populating a DATE field with a date No Less That 5 Business Days (7 Total days from today) and No More Than 10 Business days (14 Total days from today).

 

HolaOla_0-1726249266144.png

Thank you for your anticipated help. 

1 ACCEPTED SOLUTION

It Is working fine in my pdi @Hola Ola 

Refer below link

https://www.servicenow.com/community/developer-articles/no-code-date-validations-through-catalog-ui-... 

 

You can also write onChange Client script 

https://www.servicenow.com/community/itsm-forum/if-end-date-is-more-than-10-business-days-alert-shou...

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

11 REPLIES 11

Hello @Voona Rohila 

Thank you.

 

Yes, No earlier than 7 days and No later that 14 days.

 

The earliest a user can enter from today is 09/21 and latest should be 09/28

It Is working fine in my pdi @Hola Ola 

Refer below link

https://www.servicenow.com/community/developer-articles/no-code-date-validations-through-catalog-ui-... 

 

You can also write onChange Client script 

https://www.servicenow.com/community/itsm-forum/if-end-date-is-more-than-10-business-days-alert-shou...

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP