annet
unread,Nov 26, 2008, 9:42:38 AM11/26/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py Web Framework
In a controller I have got the following code to build a form:
form=FORM('Type een plaatsnaam:',
INPUT(_name='plaatsnaam',requires=IS_NOT_EMPTY()),
'Selecteer een activiteit:'
SELECT(_name='training',requires=IS_IN_DB
(db,'training.training','%(training)s')),
INPUT(_type='submit'))
In my model,
db.bedrijftraining.training.requires=IS_IN_DB(db,
'training.training','%(training)s')
results in a drop down list in the admin, I had hoped to achieve the
same in the form above using the following line of code:
SELECT(_name='training',requires=IS_IN_DB(db,'training.training','%
(training)s')),
,however, this line results in an error, does one of you know how to
implement a drop down list in FORM?
Best regards,
Annet.