Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Validate Callout/Calendar.do selection
System
I'm working on a date picker using the "/Callout/Calendar.do" function. I have the cgi-callout date in my DCR
...cgi-callout url="/iw-cc/DataCapture/Callout/Calendar.do" label="Select Date"...
Question: Is there a way to validate that I can only select future dates (i.e. one month from current date) and it will prompt if you select a past date?
Appreciate any help on this.
Thanks.
Find more posts tagged with
Comments
nipper
You can do anything you can code.
I do not know if there is a future date only flag for that calendar. There have been a few floating around with some undocumented features. Cannot just crack open the code and look like a simple JS one.
Your best bet is to do it in FormAPI. When the item changes compare the date to today.
Rick Poulin
Your best bet is to do it in FormAPI. When the item changes compare the date to today.
And if that's not sexy enough for you, I'd suggest rolling your own calendar popup.. Using Calendar.do is an unsupported hack for the lazy, which is fine if you only need the basic functionality but I'd stay clear of trying to muck around with it too much. It's probably easier to write a custom .ipl or .jsp that uses jQuery UI (or similar), which actually supports doing fancy stuff like this.
Migrateduser
Thanks for the responses.
I'll dig into this FormAPI or creating my own calendar if customization is inevitable.