# Select Combo Table

**URL:** <https://discourse.cakephp.org/t/select-combo-table/8990>\
**Category:** Uncategorized\
**Created:** [February 9, 2021, 4:13pm UTC](https://discourse.cakephp.org/t/select-combo-table/8990 "2021-02-09T16:13:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wtamayom](https://avatars.discourse-cdn.com/v4/letter/w/b2d939/32.png) [@wtamayom](https://discourse.cakephp.org/u/wtamayom)\
**Post date:** [February 9, 2021, 4:13pm UTC](https://discourse.cakephp.org/t/select-combo-table/8990/1 "2021-02-09T16:13:59Z")

</div>

Hi.

Can you please help me obout this.

I use a source table to put info in a select combo, but in my destination table I do not want to store the id of the record of the source table, I want to store the value.

Source  
Example ID: 1 - Value: Excelent  
Destinaton  
Value: Excelent (the way is below stores the 1)

table  
$this-\>belongsTo(‘Escalavaloraciones’, [  
‘foreignKey’ =\> ‘’,  
‘joinType’ =\> ‘INNER’,  
]);

Controller  
$escalaValoraciones = $this-\>Selecciones-\>Escalavaloraciones-\>find(‘list’);

view  
echo $this-\>Form-\>control(‘presentacion\_personal\_entrevista’, [‘options’ =\> $escalaValoraciones]);

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [February 9, 2021, 5:36pm UTC](https://discourse.cakephp.org/t/select-combo-table/8990/2 "2021-02-09T17:36:11Z")

</div>

Set both the `keyField` and `valueField` to the same field in your [`find('list')`](https://book.cakephp.org/3/en/orm/retrieving-data-and-resultsets.html#finding-key-value-pairs).
