Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Data validaition

venkatesh tadip
Tera Contributor

Hi Team,

 

I have a requirement that i want to validate start date is greater that end date, then i need to show an alert message and it should validate all time formats like 12 hour and 24 hour. i want to achieve this in on submit client script.

 

Please let me know your suggestions on this

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

@venkatesh tadip 

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  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

@venkatesh tadip Have you checked this solution which requires only minimal scripting?

If this is for a Catalog Item you can even do this without any script, by using a UI Policy Action to clear the end date and show the error message.

 

Regards,

Robert