Disable past dates in Date picker in a form

Madhan007
Tera Contributor

Hi all,
The Requirement is to disable the selection of past dates in a date type field in servicenow? (Not by  giving an alert and clearing the value using onChange client script)
 How can I achieve this?

Thank you!!

1 ACCEPTED SOLUTION

@Madhan007 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

PA001
Mega Sage

Hello Madhan,

 

You can achieve through UI policy script .

 

Thanks

Madhan007
Tera Contributor

Hi @PA001 , can you elaborate more on how to do this?

Ankur Bawiskar
Tera Patron
Tera Patron

@Madhan007 

you cannot disable the previous dates, no option available for this.

you can only run validation using UI policy or onChange client script

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Madhan007 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader