The CreatorCon Call for Content is officially open! Get started here.

Date Validation + Record Producer + Client Script + Script Include

mark141230
Tera Expert

Hi Everyone,

I have a requirement related to Date Validation, where I have a Date Field name (New Expiry Date) which should not be less than the valid until date of a project.

So far I have this record producer where I have a "project_name" reference field and if you dot walk to this field, you will get the "valid until" date field which  I need to compare if the "new expiry date" date field in my record producer is less than the "valid until" date.

As researched, you need to use GlideAJAX, client script and script include to it so you will be able to run server side script with your client script.

 

Acceptance Criteria:

New Expiry Date !< project_name.valid_until

 

Hope you can help me.

Thanks in Advance!

 

5 REPLIES 5

@mark141230 

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

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