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
Solved

how to disable cfinput date field date range

Posted on 2010-08-30
3
1,217 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
COLD FUSION 6 27
C# script to Coldfusion 25 82
query of query sort 6 105
Passing value to a stored procedure 8 106
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

790 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