I think that by default that table definition should show the
multiselect widget in CRUD forms. If not, it should be possible to set
it explicitly:

db.mytable.myfield.widget = SQLFORM.widgets.multiple.widget

And you can also create your own custom widgets by declaring a
function that receives field and value arguments and returns a helper.
For a detailed example check the online manual at 7.7 Widgets

On 17 mar, 11:11, bussiere adrien <[email protected]> wrote:
> Is there a recipe anywhere to show how to do when a i have a external
> reference in my db table as liste:reference
> to make it simple to add existing references or make a popup to create a
> new reference ?
>
> exemple :
> db.define_table('Film',
>    Field('nom'),
>    Field('Acteur','list:reference Acteur'),
>
> When i make a form1 = crud.create(db.Film)
> it sho me just a field and not menu as django or a field list or create a
> new one.
>
> Is there a recipe anywhere to do that ?
>
> Regards
> Bussiere

Reply via email to