That's tricky. You might get ideas from 
this: https://groups.google.com/d/topic/web2py/UK8NZ1VMlNk/discussion. Maybe 
others have suggestions.

Anthony

On Wednesday, September 28, 2011 9:48:16 AM UTC-4, Joseph Jude wrote:
>
> Thanks Anthony for the reply.
>
> 1) With your answer, I understand why the ['',''] is displayed. But is 
> there a way to change it?
> 2) [] is appended since I wanted an array. But in the mean-while I 
> experimented without [] and just having 'items' as the variable name for all 
> the three fields and got the same behavior (your explanation tells me why).
> 3) I want the user to add as many fields as needed. Think of list of to-do 
> items for a single topic.
> 4) the db model is not a list:string. it is a regular table:
>
> db.define_table('checklist_items',
> Field('checklist_id', db.checklists),
>     Field('item_name')
> )
>
> 5) there is only one field in the form which is mandatory; others (about 5 
> other fields) are not. so I can't use keepvalues=false
>
> Hope to hear.
> Thanks again,
> Joseph
>

Reply via email to