I would suggest you override the updateObject method of your form.
Proof of concept:

public function updateObject ()
{
  parent::updateObject();
  if ($this->isValid())
  {
    $this->values['my_custom_added_value'] = 'MyCustomAddedValue';
  }
}

What version of symfony are you using? You need to check the form
class to see what the method signature is for the version you are
using cause that has changed from 1.1 to 1.2.

Good luck,

Marijn


On Mar 10, 5:58 pm, HAUSa <[email protected]>
wrote:
> I got a form, in which users can select multiple values for a field
> using sfWidgetFormChoiceMany().
>
> Now, is it possible to add more values to the submitted array on
> submit? I'm not talking about default values when the form shows, but
> specifically when the form gets submitted. So the default values are
> added afterwards.
--~--~---------~--~----~------------~-------~--~----~
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