# getValue from other fields when in entry mode

**URL:** <https://discourse.getcockpit.com/t/getvalue-from-other-fields-when-in-entry-mode/1678>\
**Category:** Support\
**Created:** [October 16, 2020, 12:05pm UTC](https://discourse.getcockpit.com/t/getvalue-from-other-fields-when-in-entry-mode/1678 "2020-10-16T12:05:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasperkamperman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/kasperkamperman/32/688_2.png) [@kasperkamperman](https://discourse.getcockpit.com/u/kasperkamperman)\
**Post date:** [October 16, 2020, 12:05pm UTC](https://discourse.getcockpit.com/t/getvalue-from-other-fields-when-in-entry-mode/1678/1 "2020-10-16T12:05:28Z")

</div>

I just did an [add-on for geojson location](https://discourse.getcockpit.com/t/list-of-cockpit-addons/234/24). I’d like to populate the search input field with information from other fields (street, city) in my collection.

It’s seems that the `$this` object gives access to all fields in my collection, but is there a way to grab the current value?

For example this: **`this.$boundTo.fieldsidx.street`**  
returns all the field information, but it doesn’t contain values.  
`{name: "street", label: "", type: "text", default: "", info: "", …}`

There is the “$getValue” option. How could I use that and point to a specific field? Or is there another way to do this.

---

<div class="post-metadata">

**Author:** ![kasperkamperman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/kasperkamperman/32/688_2.png) [@kasperkamperman](https://discourse.getcockpit.com/u/kasperkamperman)\
**Post date:** [October 16, 2020, 2:10pm UTC](https://discourse.getcockpit.com/t/getvalue-from-other-fields-when-in-entry-mode/1678/2 "2020-10-16T14:10:32Z")

</div>

I found it, it’s the entry object. **`this.$boundTo.entry.<fieldname>`**  
`console.log(this.$boundTo.entry.street);`
