Nice.

It seems I recall that form.process() does not handle inserted fields.

Just something to look out for when you get to the next stage.

On Dec 16, 11:03 am, whowhywhat <mads...@gmail.com> wrote:
> wow .. it works! :) ...
>
> i just added the following in the controller (after calling SQLFORM.grid):
>
> #check if form is a create form
> if  len(request.args)>1 and request.args[-2]=='new' and form.create_form:
>     my_extra_element =
> TR(LABEL('Married'),INPUT(_name='married',value=False,_type='checkbox'))
>     form.create_form[0].insert(-1,my_extra_element)
>
> now i need to add some jquery in the view (again after checking if the view
> is for a create or edit form).. this is so cool :D ..
> thanks a lot Anthony!
>
> will post a full example later..

Reply via email to