I am trying to use a DropdownField in a userform but it does not seem to work (Silverstripe 2.3.3).
What I did was :
1) reuse the code used in the tutorial-3 on forms:
new OptionsetField('Browser', 'Your Favourite Browser', array(
'Firefox' => 'Firefox',
'Internet Explorer' => 'Internet Explorer',
'Safari' => 'Safari',
'Opera' => 'Opera',
'Lynx' => 'Lynx'
))
thsi works fine. I can enter the form , send it and receive the notification.
2) but if I *just* change "OptionsetField" with "DropdownField" :
new DropdownField('Browser', 'Your Favourite Browser', array(
'Firefox' => 'Firefox',
'Internet Explorer' => 'Internet Explorer',
'Safari' => 'Safari',
'Opera' => 'Opera',
'Lynx' => 'Lynx'
))
I can see the form , choose an option from the DropDownMenu but when I click on "Send" nothing happens and there is no
message in the error log.
Any ideas??
Thanks