After defining the form, try:

form['_action'] = your_value  # e.g., URL('controller', 'function', ...)

You can also do form.update(_action=your_value) or 
form.attributes.update(_action=your_value).

Basically, form is a helper object, _action is an attribute of the helper, 
and helpers behave like Python dictionaries with regard to their attributes 
(so the above are just regular dictionary methods). form.attributes is a 
dictionary storing just the attributes of the form, but you don't have to 
bother accessing it, as you can access the attributes directly from form.

Anthony

On Saturday, October 15, 2011 6:12:02 PM UTC-4, miroslavgojic wrote:
>
> in controller I have next line for form 
>
> form = crud.create(db.name,next=URL('index'),message=T("some text")) 
>
>  in view I have 
>
>     {{=form.custom.begin}} 
>     {{=DIV(DIV('Name:', 
> _id='two'),DIV(form.custom.widget.fieldname,_id='three'),DIV(form.custom.submit,_id='for'),_id='one')}}
>  
>
>     {{=form.custom.end}} 
>
> this code produce 
>
> <form  action="" enctype="multipart/form-data" method="post"> .... 
>
> is is possible to put some value in action and how

Reply via email to