Hi,

I'm trying to add a CheckBoxList into a RepeatingFormField like so.

repeat_form.display(options= {'new_widget' : checkboxlist_widget})

This is fine. I've got it setup in the template to display no worries.
On the rendered page the name for the input is
'systemsearch.checkboxlist' (systemsearch is the name of the repeating
form,checkboxlist the name of the checkbox widget).

The problem this causes though is when the form is submitted, the data
doesn't come back attached to the name 'checkboxlist'. It seems the
reason for this is the naming convention for input fields in a
Repeating form is 'systemsearch-0.checkboxlist'.

Is there a way I set the name to the correct format?

I know that creating the checkboxlist widget in the __init__ of the
repeating form will remove this problem altogether, but I'm trying to
avoid this if possible.

Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to