My own workaround for this issue is to to declare it as string and regexp
,Field('actual_date', 'string', length=10
# or -MM or -MM-DD
,requires=IS_EMPTY_OR(IS_MATCH('^(\d{4})$|^(\d{4})[-
/.]((0[1-9])|(1[0-2]))$|^(\d{4})[- /.]((0[1-9])|(1[0-2]))[-
/.]((0[1-9])|[12][
a 'date' field implicitly gets the SQLFORM.widgets.date.widget. of course,
being explicit helps make it clearer.
On Friday, December 2, 2011, Rick wrote:
> Thanks! This is the final code:
> dayform = SQLFORM.factory(
>Field('thedate', 'date', label=T(''),
> widget=SQLFORM.widgets.date.wid
Hi,
How to change the text on the submit button in fields? Here'sthe code:
Field('thedate', 'date', label=T(''),
widget=SQLFORM.widgets.date.widget))
I tried with this, but i didn't work:
Field('thedate', 'date', label=T(''),
submit=INPUT(_type='submit'('Some text')),
widget=SQLFORM.widgets.date.
3 matches
Mail list logo