No but you can do

form=crud.create(db.person, onaccept = lambda form:
redirect(URL(r=request,f='another_form',args=form.vars.id)))


On Apr 14, 11:03 am, Avik Basu <[email protected]> wrote:
> Hi,
>
> Is it possible to use a lambda function within the next argument in a
> crud create?  I would like to redirect the user to a new page based on
> the id of the record that was just created.  Example:
>
> form=crud.create(db.person,
>         next= lambda form:
> redirect(URL(r=request,f='another_form',args=form.vars.id))
> )
>
> Thanks,
> Avik


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to