This topic is locked

Date Dropdown List

4/7/2009 11:45:00 PM
PHPRunner General questions
A
aljawo author

Is there a way to change the order of the years in the drop down list in a Date Field ?
It starts from the lowest year instead of the most current one. It's very uncomfortable to use.
Thanks !

J
Jane 4/8/2009

Hi,
open generatedinclude/commonfunctions.php file, locateWriteYears function, find this line:

for($i=$firstyear;$i<=$lastyear;$i++)



and replace it with this one:

for($i=$lastyear;$i>=$firstyear;$i--)

A
aljawo author 4/8/2009

Thanks!!!!!!! It works like a charm