How do I check if catalog variable date is between today and 7 days from today

Mike LHCG1
Tera Contributor

I have a requirement to check if a catalog variable date is between today and 7 days from today. I haven't found a way to do it with catalog policies. Does anyone have a solution for this that they can share with me? I would appreciate it if in addition to what needs to be done, if you could share how it's done. Thank you.

1 REPLY 1

jonsan09
Giga Sage

You could utilize catalog client scripts that run while the user fills out the catalog item. See this article with script examples: https://www.servicenow.com/community/developer-articles/date-validations-client-scripts/ta-p/2298860