I don't think you can put any additional HTML tags in an <option> element,
so you would probably have to use a Javascript plugin to render a custom
dropdown (e.g., http://designwithpc.com/Plugins/ddSlick).
Anthony
On Tuesday, February 11, 2014 10:57:00 AM UTC-5, Jim S wrote:
>
> I'm looking for a way to format the dropdown list generated from a SQLFORM.
>
> I'm using the following code:
>
> db.equipOrder.customerId.requires = IS_IN_DB(query, db.customer,
> ('%(customerId)s - %(name)s'), zero='..')
>
> which give me a nice dropdown list showing my customer id and name.
> However, I'd really like to add a second line to each item in my list that
> displays the city and state where the customer reside. Is there a way for
> me to do this using the IS_IN_DB validator?
>
> -Jim
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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.