Date/time variable validation selected date should be mamimum within 7 days from start date

raj99918
Tera Contributor

Hi 

 

I have two variables called Start date and End date on catalog form I need a validation on End date, the selected date should be mamimum within 7 days from Start date

Note: Data type for both the variables is Date/Time

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@raj99918 

no scripting required.

You can use Catalog UI policy for this.

AnkurBawiskar_0-1755779337384.png

 

AnkurBawiskar_1-1755779429528.png

 

Output:

AnkurBawiskar_0-1755779802548.png

 

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

6 REPLIES 6

@raj99918 

Glad to help.

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

@raj99918 

Would you mind closing your earlier questions by marking appropriate response as correct?

Members have invested their time and efforts in helping you.

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