Sorry, the **dict() isn't really needed -- you can just do:
 
form.element('form').update(_class='no_trap', 
action=URL('default','create_fvte'))
 
 
Actually, in the URL() call above, you might be better off doing 
'create_fvte.html' to ensure it doesn't use the .load extension, which would 
then propagate to the redirect (unless you explicitly specify .hmtl in the 
redirect).
 
Anthony

On Wednesday, June 29, 2011 6:02:42 PM UTC-4, Anthony wrote:

> Try this:
>  
>     form = crud.create(db[table])
>     form.element('form').update(**dict(_class='no_trap', 
> action=URL('default','create_fvte')))
>  
>  
> The _class='no_trap' should turn off the trapping of the form, and the 
> action=URL('default','create_fvte') should ensure that the untrapped form 
> gets submitted back to the create_fvte function rather than the parent page 
> (i.e., the index function). Because the form will not be submitted via ajax, 
> the redirect should work as usual and reload the entire page.
>  
> Anthony
>

Reply via email to