ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Dynamic date generation in forms

March 12, 2012 10:55pm

Subscribe [1]
  • #1 / Mar 12, 2012 10:55pm

    fensterbaby

    289 posts

    I do a lot of websites for clients in the tourism industry. All of them have forms for people to make inquires about trips, lodging etc. And they all have fields for dates that they are interested in.

    Rather than hard code years which need to be edited every year, I want the year field to show as select options, the current year plus the next n years.

    This would be easy to do if EE supported even simple math, which it should… hint, hint.

    I know how to generate the current year but current year + 1 just yields a string that EE has no clue about.

    solutions?

  • #2 / Mar 12, 2012 11:07pm

    Bhashkar Yadav

    727 posts

    look at Loop Plugin.

    hope it would help you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases