Hi all,
sfDependentSelectPlugin is a great plugin and I use it. But from the
documentation I cant figure the following case.
Let's say we a form with state-city dependent selectboxes, but we have
invoice address, delivery address and alternative address. That means
that we have 2 sets of state-city dependent select boxes. That is

for invoice state-city:

$this->setWidget(
            'invoice_state_id',
            new sfWidgetFormPropelChoice(array('model' => 'State',
'add_empty' => false))
);

$this->setWidget('invoice_city_id', new
sfWidgetFormPropelDependentSelect(array(
            'model'     => 'City',
            'method'    => 'getTitle',
            'depends'   => 'State',
            'add_empty' => false,
            'ajax'      => true,
    )));

for delivery will it be:

$this->setWidget(
            'delivery_state_id',
            new sfWidgetFormPropelChoice(array('model' => 'State',
'add_empty' => false))
);

$this->setWidget('delivery_city_id', new
sfWidgetFormPropelDependentSelect(array(
            'model'     => 'City',
            'method'    => 'getTitle',
            'depends'   => 'State',
            'add_empty' => false,
            'ajax'      => true,
    )));

the connection is 'depends'=>'State'. We have 2 widgets with model
State, What will happen?
It will break?
I say the plugin is great, but this is a MUST!! pleaseeeeeee
Then it will be even great!!

Best regards

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to