Question: I have two table users and Areas.Areas has a relation with users.So I have add users\_id in Areas table.After bake I get the output fine.But here in areas add form user field is showing users\_id in select box.Here I want to show users\_name.How can I change it? 

Here is the model code 

```
MadAreas' => array(
            'className' => 'MadAreas',
            'foreignKey' => 'users_id'
)

```

In controller

```
$madAreas = $this->MadArea->Users->find('list');

```

In add.ctp 

```
 echo $this->Form->input('users_id',array( 'label' => false, 'class'=>'form-control' ));

```

Answer: 
Try specifying the fields you want in your find statement:

```
$madAreas = $this->MadArea->Users->find('list', array(
                                                'fields' => array('id','username')
                                                )
                                       );

```

Changing the `$displayField` in the model as mentioned in @mponos-george's answer should do it anyways, just make sure you clear your Cache files after changing the model value.
Change the display field in your User model

<http://book.cakephp.org/2.0/en/models/model-attributes.html#displayfield>