- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 05:53 AM
Hi,
I am trying to create a client script that will run against a Date variable that will only let end users select days at least 3 business days in the future. I was able to create one that will at least 3 days in future but they are still able to select days during the weekend.
Currently, I am able to achieve this by grabbing the day they selected and comparing it to a future date (today's date + # of days) and clearing the field if it is not enough days out.
Any Ideas?
Thanks,
Josh Anderson
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 06:04 AM
The way I do it, without getting into schedules, is to get the day of week value (for example, 4 is Thursday). Then, if day of week value + 3 > 6 (which is Saturday), I add 5 instead of three.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 06:04 AM
The way I do it, without getting into schedules, is to get the day of week value (for example, 4 is Thursday). Then, if day of week value + 3 > 6 (which is Saturday), I add 5 instead of three.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2016 07:39 AM
Thanks Mike, it works perfectly! I greatly appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2016 02:57 AM
Can you please provide the code for this.even i have a same requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 05:47 AM
Hi Sanuj,
See my response to Dilini below...
Thanks,
Josh