In a previous post Massimo corrected the following definition: SQLField('datum',type='date',requires=[IS_DATE(str(T('%Y-%m- %d'))),IS_NOT_EMPTY()])
It should be: SQLField('datum',type='date',requires=IS_DATE(str(T('%Y-%m- %d')))) In this specific case the date field is required, however, I also have a field of type date which is not required, in this case leaving the field empty results in the form not passing validation. How do I solve this problem? Furthermore, I have fields with an IS_MATCH() validator, does IS_MATCH () implicate IS_NOT_EMPTY() as well? Kind regards, Annet [IS_MATCH('[1-9]{2}'), IS_NOT_EMPTY()] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---