setting a default in sfwidgetformchoice
- by user334017
I have an embedded form with a choice widget. I'm trying to pass a default value from the main form to the widget. I'm trying to pass the value to the form as an option, then once I have it in the embedded form do I just do something like:
new sfwidgetformchoice(array(...,'default' => $this->getOption('default'))
doesn't seem to work