Am 18.07.2011 12:41 schrieb mpearce:
I note that the HidingRadioButtonList demo on the dynforms page is
not working. If you select a radio button, no other fields are
displayed. I have also tried the code in my application and get the
same result. The HidingSingleSelectField demo is fine, however I
would like to use the HidingRadioButton List widget in my
application. Any assistance would be appreciated.
If you look at the demo source you see that there is a mismatch between
the "options" and "mapping" parameters.
It should be either
options=('E-mail', 'Phone', 'SMS'),
mapping={
'E-mail': ['email_address'],
'Phone': ['phone_number'],
'SMS': ['phone_number']}
or
options=[(0,'E-mail'), (1,'Phone'), (2,'SMS')],
mapping={
0: ['email_address'],
1: ['phone_number'],
2: ['phone_number']}
-- Christoph
--
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.