hi,
is it normal for list:string type field is empty when on editing page?
e.g.
db.define_table('contact',
* Field('salutation'),*
Field('first_name'),
Field('last_name'),
* Field('gender', 'list:string'),*
Field('birthday', 'date'),
Field('job_title'),
Field('address', 'text'),
Field('zip'),
Field('city'),
Field('country'),
Field('phone'),
Field('fax'),
Field('email'),
* Field('account', 'reference account'),*
format='%(first_name)s %(last_name)s')
*db.contact.salutation.requires=IS_IN_SET(['Mr.', 'Mrs.', 'Ms.'])*
db.contact.first_name.requires=IS_NOT_EMPTY()
db.contact.last_name.requires=IS_NOT_EMPTY()
*db.contact.gender.requires=IS_IN_SET(['Male', 'Female'])*
db.contact.job_title.requires=IS_NOT_EMPTY()
db.contact.address.requires=IS_NOT_EMPTY()
db.contact.zip.requires=IS_MATCH('^\d{5,5}$',
error_message='not a zip code')
db.contact.city.requires=IS_NOT_EMPTY()
db.contact.country.requires=IS_NOT_EMPTY()
db.contact.phone.requires=IS_NOT_EMPTY()
db.contact.email.requires=[IS_EMAIL(),
IS_NOT_IN_DB(db, 'contact.email')]
*db.contact.account.requires=IS_IN_DB(db, db.account.id, '%(account_name)s')
*
i make 3 different field type (bold) that contain drop down in the form
view. why the value is always empty for the list:string type when i'm on
the editing page? is it possible for not empty for list:string type in
editing page?
any idea or explaination about this?
thank you so much before
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.