I know I've had problems with form submission when a form submit cause
modification in its own fields (for SQLFORM.factory anyways).
When doing something like that, the following approach worked for me:
On Sep 27, 4:37 am, b0j3 wrote:
> Hi!
>
> I'd like to add new fields to SQLFORM.factory,
Yes. That's it. Thanks
I've missed the asterisk.
B.
On Sep 27, 2:42 pm, mdipierro wrote:
> fields=[]
> fields.append(Field(...))
> form=SQLFORM.factory(*fields)
>
> On Sep 27, 3:37 am, b0j3 wrote:
>
> > Hi!
>
> > I'd like to add new fields to SQLFORM.factory, but I don't know in
> > advance how
fields=[]
fields.append(Field(...))
form=SQLFORM.factory(*fields)
On Sep 27, 3:37 am, b0j3 wrote:
> Hi!
>
> I'd like to add new fields to SQLFORM.factory, but I don't know in
> advance how many fields are there and their names.
> So I'd like to create something as tuple with field names and then
3 matches
Mail list logo