Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5518 มุมมอง
Hi guyz,

Firstly, when a date field is set, for ex:
    'date': fields.date('Date'),

The years displayed are normally 2003 - 2023 as the current year is 2013 i.e. +/-10 years in the selection box for years. 
But normally when we see any site for date of birth, they provide year range from 1970 -2013(i.e. present).

Is there any way to make the range bigger.
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Choose 2003 and then range shift to 1993. And step by step you go to 1920. The same in other direction. Or just write it by hand.

อวตาร
ละทิ้ง
ผู้เขียน

there is no range before 2003, so how can i get 1920 selected. tell me how to customize the range.

ผู้เขียน

I need customization of date field through code.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 25
6378
1
พ.ย. 22
3317
3
พ.ย. 21
25988
1
พ.ค. 17
4589
Year only needed - how to implement? แก้ไขแล้ว
2
มี.ค. 15
5277