Hi Annet, A general way of solving such problems is to enter debugging mode, that is add a line import pdb;pdb.set_trace() after lines creating the form. Then find the soultion by yourself with trial and error in debugging mode. Help yourself with inspecting objects, and looking at their xml output with form[0][0].xml() method.
Regards, Maciek On Oct 2, 3:27 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > 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 -~----------~----~----~----~------~----~------~--~---