Hi Nate,
I tried what you suggested but its not working...here is what I tried
I tried this in my Author AppModel
var $displayField = 'full_name';
function afterFind($results)
{
foreach ($results as $key => $val)
{
$results[$key]['Author']['full_name'] =
$val['Author']['lname'] . ', ' . $val['Author']['fname'];
}
return $results;
}
and here is my view code
<div class="optional">
<?php echo
$form->labelTag('Author/full_name', 'Related
Authors');?>
<?php echo
$ajax->autocomplete('Author/full_name', "",
array('cols' => '45', 'rows' => '5'), "textarea");?>
</div>
I have added an option for display textarea instead of textfield in
ajax.php.
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---