Show a warning message on the form if the Delivery Date is more than 24 hours overdue?

Joshua Prakash
Tera Expert

Screenshot 2025-01-20 112413.pngScreenshot 2025-01-20 114322.pngScreenshot 2025-01-20 114352.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Joshua Prakash

your field is of type date and you want to check for 24 hours i.e. 1 day then why not use UI policy with condition rather than scripting?

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

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

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Joshua Prakash

your field is of type date and you want to check for 24 hours i.e. 1 day then why not use UI policy with condition rather than scripting?

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

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