Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2010 at 13:04 UTC
Updated:
12 Jun 2011 at 09:26 UTC
Is there a way to have a drop down with the year (going back 50 years) that stays current with whatever the current year is?
Comments
Comment #1
quicksketchYes, you just set the starting year to -50. (It defaults to -2).
Comment #3
DrupalKing commentedHmm, I want it to just list the year, not the month and day.
Comment #4
ndewhurst*edited*
Comment #5
ndewhurstI, too, want to list only the year, while taking advantage of the year range parameters and option auto-generation of the date field type. Has anyone already done this?
Comment #6
vernond commentedOff the top of my head it may be easiest to make a little custom module and use hook_form_alter to change the month and day bits of the FAPI array into hidden fields with a default value that will still validate as an actual date (01 and 01 for example)