- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2025 08:59 AM
Hi all,
I am trying to configure a Date variable on a Catalog Item form so users can only select a date that is at least two weeks out from the current date. Using a Catalog Client Script, I tried scripting this function, which gives me no errors but seems to not change anything on the form.
Can anyone take a look at my script and tell me what I might be doing wrong?
Example: highlighted dates should be grayed out and not selectable:
My Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2025 04:50 AM
@CesarV_ I believe you dn't need client script in this case, did you try UI policy.
The condition should be <date variable> "Relative (operator) after 14 Days from now".
Once you select the variable and operator as "relative", you will get other options to select. This way you can achieve this without script login.
After the condition, in the run script under "execute if true" , you can throw and alert or clear the field if earlier dat is selected.
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 10:04 AM
Hi @CesarV_ , Hope you are doing well, have you tried the solution I have posted? It worked in my project.
If my answer given earlier were helpful then Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2025 05:30 AM
Hi @CesarV_ , Did you try my solution? was it helpful?
If my answers given earlier were helpful then Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
@svirkar420 this did not work, unfortunately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @CesarV_ , Hope you are doing well, Did you tried implementing my given solution?
If my answers given earlier were helpful then Please Mark this solution as accepted and helpful as it will be helpful for other users as well.
Best Regards.
Saurabh V.
