Solved

how to disable cfinput date field date range

Posted on 2010-08-30
3
1,224 Views
Last Modified: 2012-06-22
how to disable cfinput date field date range in coldfusion from need to disable all dates before today and have all dates one week after today disabled
0
Comment
Question by:mugsinc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Expert Comment

by:silvera21
ID: 33559934
You can't do that easily with the cfinput datefield. You should be able to do that with cfcalendar. I would use that instead.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_02.html#3798877
0
 
LVL 13

Accepted Solution

by:
ansudhindra earned 500 total points
ID: 33565419
You can block only one range of date in ColdFusion, if you want multiple date ranges then you may need to try some other javascript calendar. A good scrip yo can find in the below link.

http://www.ajaxdaddy.com/swazzcalendar-javascript.html
0
 
LVL 4

Expert Comment

by:silvera21
ID: 33568320
No out of the box solution from adobe then. There are a lot of free calendars out there.

Another option would be to use onChange to check the date and determine if it is valid via actionscript, but that is not as user friendly as having it already greyed out. You can use JS validation with cfinput datefield as well.

Here is one that supports what you want, but is not free ($28).

http://www.softcomplex.com/products/tigra_calendar_pro/
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question