form[0][0][0].insert(0,H3('Bedrijfsgegevens'))

This has the same syntax as list insert in python.

I would suggest using a custom form instead

{{=form.custom.begin}}
<h3>....</h3>
{{=form.custom.end}}

On Oct 2, 7:41 am, annet <annet.verm...@gmail.com> wrote:
> I have a form to which I want to add headers, for the various parts of
> data.
> I thought the following line of code would add a header before the
> first
> field:
>
> form[0][0][0].insert(H3('Bedrijfsgegevens'))
>
> However, it results in an error ticket, insert takes three argument
> instead of 2.
> What should the first argument read like to make this work?
>
> Kind regards,
>
> Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to