Variable number of fields

13 views
Skip to first unread message

pinakee biswas

unread,
Jun 5, 2013, 4:08:52 AM6/5/13
to toscawidge...@googlegroups.com
Hi,

We are using tw forms 0.9.9 for our forms on our admin portal. The web framework is Pylons. We would like to have variable number TextFields in our form based on number of records in database. We are not sure how to achieve that. We tried with update_params but it's not working. 

Our code is something like this:

class myForm(ListForm):
   template = 'x.html'
   id = 'my-form'
   css_class = 'form'
   submit_text = none
   show_children_errors = True
   _name = 'my-form'
   fields = [
                 SingleSelectField.....
                  TextField...........
                  TextField....
..........................


              ]

We would really appreciate if you could provide us a solution for the above requirement.

Looking forward to your response...


Thanks,
Pinakee Biswas
Vvidia Communication

Paul Johnston

unread,
Jun 6, 2013, 3:19:50 PM6/6/13
to toscawidge...@googlegroups.com
Hi,

I suggest you use ToscaWidgets 2 which supports this well using GridLayout. If you're stuck with 0.9 then it is possible with a ReapeatingWidget, but it's messy and not documented.

Paul


Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-dis...@googlegroups.com.
To post to this group, send email to toscawidge...@googlegroups.com.
Visit this group at http://groups.google.com/group/toscawidgets-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages