Hi,
I have a dynamic pulldown in a form populated from a db, on an add/
edit function it shows the available addresses in Alphabetical order,
but on edit I would like it to show the current selected address as
default.
This is the line from my controller
$this->set('addresslist',$this->Fullname->Address->find
('list',array('fields' => array('address_street'))));
and the edit/add view line:
echo $form->input('Address.addr_id',array('options'=>
$addresslist,'label'=>'Select Address'));
How do I modify the above line to set the current address as the
default?
Darren
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---