# Bookmark example how I set name off user in edit bookmark

**URL:** <https://discourse.cakephp.org/t/bookmark-example-how-i-set-name-off-user-in-edit-bookmark/7246>\
**Category:** Need Help\
**Created:** [February 7, 2020, 1:54pm UTC](https://discourse.cakephp.org/t/bookmark-example-how-i-set-name-off-user-in-edit-bookmark/7246 "2020-02-07T13:54:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santiago](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Santiago](https://discourse.cakephp.org/u/Santiago)\
**Post date:** [February 7, 2020, 1:54pm UTC](https://discourse.cakephp.org/t/bookmark-example-how-i-set-name-off-user-in-edit-bookmark/7246/1 "2020-02-07T13:54:28Z")

</div>

Hi everyone:  
I have followed the example of how to make a bookmark and when I am going to edit a bookmark I see that instead of being the names of the users is the id of each one. How should I put so that the combo display names?

The line that prints that is like this:

echo this-\> Form-\> control ('user\_id', ['options' =\> users]);

Thank you all.

---

<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 7, 2020, 2:35pm UTC](https://discourse.cakephp.org/t/bookmark-example-how-i-set-name-off-user-in-edit-bookmark/7246/2 "2020-02-07T14:35:48Z")

</div>

`'options' => users`? or `'options' => $users`? Presumably the latter. Show us where `$users` is being set.

---

<div class="post-metadata">

**Author:** ![dreamingmind](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dreamingmind/32/1857_2.png) [@dreamingmind](https://discourse.cakephp.org/u/dreamingmind)\
**Post date:** [February 7, 2020, 8:02pm UTC](https://discourse.cakephp.org/t/bookmark-example-how-i-set-name-off-user-in-edit-bookmark/7246/3 "2020-02-07T20:02:07Z")

</div>

Take a look at this question and answers.

> [@Forms dropdown load data from field](https://discourse.cakephp.org/t/forms-dropdown-load-data-from-field/7217):
>
> Hi, I’m having a few issues trying to figure out the following, even reading the documentation it makes little sense… I’ve creating the following 2 tables partners - id - partner\_type\_id (partner\_types id) FK partner\_types - id - partner\_type generated the code using cake bake all Partners generated the code using cake bake all PartnerTypes on the add, edit form for the partner the dropdown only displays the ID from the partner\_type table how do I get it to display partner\_type with valu…
