[web2py] Re: Display IS_IN_SET() label

2010-08-25 Thread annet
Massimo, I am not sure you did understand my question correctly. When in the form the user selects 'Fitnesscentre' in the drop box, the function that selects all the Fitnesscentres takes 2 as its argument. I would like the flash in the view to display something like: "Fitnesscentres in Amsterdam

[web2py] Re: Display IS_IN_SET() label

2010-08-25 Thread mdipierro
form=SQLFORM.factory(Field('bedrijf',requires=IS_IN_SET([2,3,4,5,6,7],labels=['Fitnesscentrum','Fysiofitnesscentrum','Personal Trainer','Dietist(e)','Voedingsconsulent(e)','Yogaschool'],zero=None),default=3)) On Aug 25, 1:58 am, annet wrote: > In a controller I defined a form: > > form=SQLFORM.fa

[web2py] Re: Display IS_IN_SET() label

2010-08-25 Thread annet
Hi Jeff, Thanks for your reply. Could you please provide me with the correct syntax to solve this problem? Kind regards, Annet

[web2py] Re: Display IS_IN_SET() label

2010-08-25 Thread jeff
Wuth SQLFORM.factory, the way to do that is to use the default arg the Field. On 25 août, 02:58, annet wrote: > In a controller I defined a form: > > form=SQLFORM.factory(Field('bedrijf',requires=IS_IN_SET([2,3,4,5,6,7],labels=['Fitnesscentrum','Fysiofitnesscentrum','Personal > Trainer','Dietist(