Forums

[Plugin: Custom Field Template] Only future dates to choose? (3 posts)

  1. gegenalles
    Member
    Posted 2 years ago #

    Hi,

    great, now I've seen that a date-picker is integrated!

    I wonder why I'm only able to select future dates. Anyone got the same problem?

    thanks

  2. Hiroaki Miyashita
    Member
    Posted 2 years ago #

    I added the startDate attribute in the latest version 1.3.8. If you want to select past dates, please specify the startDate of your calendar. Something like this:

    startDate = '1970/01/01'

    Its format depends on dateFormat = yyyy/mm/dd. Thanks.

  3. gojsse
    Member
    Posted 2 years ago #

    I was confused where to put startDate then it made sense moments later. Here's an example of it in use:

    [begins]
    type = text
    size = 35
    date = true
    dateFormat = yyyy-mm-dd
    startDate = '2000/01/01'
    label = Start date: YYYY-MM-DD Format (ex: 2009-11-02)

    Thanks for adding this functionality!

Topic Closed

This topic has been closed to new replies.

About this Topic