I found thread where someone asked exactly the same question I'm
trying to solve:

http://groups.google.com/group/web2py/browse_thread/thread/ba58ec07a23b0393/

but the question wasn't answered, quoting from the last post:

---------------------------
...

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(e)','Voedingsconsulent(e)','Yogaschool'],zero=None)))

...

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"

request.vars.city gives me Amsterdam, what I am looking for is
something similar for Fitnesscentres, however, request.vars.bedrijf
gives me 2.
---------------------------

Is it possible?

Thanks very much,

Reply via email to