Re: [web2py] Submit gutton in fields

2011-12-03 Thread Nik Go
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][

Re: [web2py] Submit gutton in fields

2011-12-01 Thread Nik Go
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

[web2py] Submit gutton in fields

2011-12-01 Thread Rick
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.