how do i get the value selected pls?  'catcher_id'           => new
sfWidgetFormPropelChoice(array('model' => 'LpmCatcher', 'add_empty' =>
false, )),
do i use the onChange? because i get an error if add that in. i use
symfony 1.4.5..i am very new to symfony
based on the value that is selected i must do a few things

my code:
abstract class BaseLpmServiceForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                   => new sfWidgetFormInputHidden(),
      'name'                 => new sfWidgetFormInputText(),
      'wap_home'             => new sfWidgetFormInputText(),
      'call_center_number'   => new sfWidgetFormInputText(),
      'catcher_id'           => new
sfWidgetFormPropelChoice(array('model' => 'LpmCatcher', 'add_empty' =>
false, 'onchange'=> 'updateForm(this.value)')),
      'price_description'    => new sfWidgetFormInputText(),
      'logo'                 => new sfWidgetFormInputText(),
      'invalid_msisdn_text'  => new sfWidgetFormInputText(),
      'terms_and_conditions' => new sfWidgetFormInputText(),
      'service_code'         => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'id'                   => new sfValidatorChoice(array('choices'
=> array($this->getObject()->getId()), 'empty_value' => $this-
>getObject()->getId(), 'required' => false)),
      'name'                 => new
sfValidatorString(array('max_length' => 64, 'required' => false)),
      'wap_home'        'catcher_id'           => new
sfWidgetFormPropelChoice(array('model' => 'LpmCatcher', 'add_empty' =>
false, )),      => new sfValidatorString(array('max_length' => 256,
'required' => false)),
      'call_center_number'   => new
sfValidatorString(array('max_length' => 13, 'required' => false)),
      'catcher_id'           => new
sfValidatorPropelChoice(array('model' => 'LpmCatcher', 'column' =>
'id')),
      'price_description'    => new
sfValidatorString(array('max_length' => 128, 'required' => false)),
      'logo'                 => new
sfValidatorString(array('max_length' => 255, 'required' => false)),
      'invalid_msisdn_text'  => new
sfValidatorString(array('max_length' => 255, 'required' => false)),
      'terms_and_conditions' => new
sfValidatorString(array('max_length' => 750, 'required' => false)),
      'service_code'         => new
sfValidatorString(array('max_length' => 3, 'required' => false)),
    ));

 public function updateForm($selected_value)
  {
      //do a few things here
  }

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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