Solved

how to disable cfinput date field date range

Posted on 2010-08-30
3
1,197 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now