Block future dates?

Is there a way to "block" dates in the future from being picked?

blocking dates with custom oncalchange handler

jamiegrove's picture

Hi, Ian.

Sorry about the delay. I'm posting our email exchange here in the forum so others will be able to see it:

Blocking dates is not something we've had a request for, but it's a great idea. That said, I don't have a quick fix for you, but you could probably accomplish it quickly by using the getElementByDate method. That method gives you a handle on a cell. You could add styles to it to keep it from being selected. You could also tackle the problem by making a custom oncalchange handler (which would be my preferred method).

http://scal.fieldguidetoprogrammers.com/scal-v02-documentation/scal-opti...

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options