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
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
Hi Jeff,
Thanks for your reply. Could you please provide me with the correct
syntax to solve this problem?
Kind regards,
Annet
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(
4 matches
Mail list logo