[CLOSED] Disabling dates in DateField

  1. #1

    [CLOSED] Disabling dates in DateField

    I want my DateField to only accept dates in the past and not the present or future. I see that DateField has a DisabledDates config option but this seems to require that I specify an array of dates or regular expressions, but how do I specify that I only want past dates to be enabled without resorting to a large DisabledDates config array?
    Last edited by Daniil; Feb 07, 2011 at 1:00 PM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by daneel View Post
    I want my DateField to only accept dates in the past and not the present or future. I see that DateField has a DisabledDates config option but this seems to require that I specify an array of dates or regular expressions, but how do I specify that I only want past dates to be enabled without resorting to a large DisabledDates config array?
    I figured it out just after I started this thread (typical!) and then I saw the "similar threads" link so please mark this as CLOSED :o
  3. #3
    Quote Originally Posted by daneel View Post
    I figured it out just after I started this thread (typical!) and then I saw the "similar threads" link so please mark this as CLOSED :o
    These "similar threads" are often very helpful:)

Similar Threads

  1. [CLOSED] Disabling ViewState
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Apr 04, 2012, 3:33 PM
  2. [CLOSED] Styling dates in DateField control
    By rmelancon in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jan 27, 2012, 2:15 PM
  3. [CLOSED] disabling nodeload
    By ewgoforth in forum 1.x Legacy Premium Help
    Replies: 22
    Last Post: Feb 11, 2011, 3:46 PM
  4. Replies: 5
    Last Post: Sep 03, 2010, 9:19 PM
  5. [CLOSED] Disable specific dates and ranges in the DateField control
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 23, 2010, 6:56 PM

Posting Permissions