Hello

I have a form and in an action (from action.class.php) I initialize
it:

$tempFrm = new SbCarteOpTempForm(array(), array('type' =>
'transfer'));

$type is a variable I want to be sent to the form, it doesn't matter
here.

Then, I try to add an extra widget (not included in the db schema)

$tempFrm->setWidget('inv_selectate',new sfWidgetFormSelectMany(array
('choices' => array(0=>'nun'))));
$tempFrm->setValidator('inv_selectate', new sfValidatorPass());

The widget is included ok in the form, I can see it in the template,
but when I submit the form, this field is not sent (a var_dump shows
only the rest of the fields).

If I change sfWidgetFormSelectMany with plain sfWidgetFormSelect, the
issue is gone (submitting ok).

Why I cannot use sfWidgetFormSelectMany as an extra field in my form
(in terms of getting the value from it) ? It could be possibly a bug?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en.

Reply via email to