Limit date selection in date field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 06:28 AM
I would like to set up a date field (variable name: "access_expiration_date") so that if a user tries to select a date greater than six months from the current date, they will get an error message. I would imagine this is an easy script to write, but I'm a fairly new admin and I'm not quite sure how to do it.
Thanks!
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 12:37 PM
Hello Harneet, thank you for this post. I added a new date selection to the "Get Date Filter Options for Date Filters" Business Rule but it did not update the selections within the Between date options.
I added Last 45 Days:
But it is not showing up in the date field as an option for between dates.
Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 02:27 PM
As a test, I modified just the txt display field on a working variable and it did not change on the date between selection so I do not believe the "Get Date Filter Options for Date Filters" business rule is the correct rule that controls this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2019 08:31 AM
Harshit,
Could you please help with selected date should not exceed maximum 1 year, i have tried all possibilities but didn't worked.
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2022 01:11 AM
Really helpful Sir...thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2020 01:20 AM
Hi,
In this case UI policy works but instead of selecting quarter, you need to user relative function and condition should be like if
When to apply
This is to check if date is exceeding 6 month
Date ->Relative->after->180 ->days->fromNow
OR
Date ->Relative->after->3->Month->fromNow
In the script you can alert
alert('End date cannot be more than 6 months from current date');
