# Reference custom field in another custom field

**URL:** <https://discuss.elastic.co/t/reference-custom-field-in-another-custom-field/346066>\
**Category:** Kibana\
**Tags:** runtime\
**Created:** [October 30, 2023, 7:13pm UTC](https://discuss.elastic.co/t/reference-custom-field-in-another-custom-field/346066 "2023-10-30T19:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricio.devilla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patricio.devilla/32/121832_2.png) [@patricio.devilla](https://discuss.elastic.co/u/patricio.devilla)\
**Post date:** [October 30, 2023, 7:13pm UTC](https://discuss.elastic.co/t/reference-custom-field-in-another-custom-field/346066/1 "2023-10-30T19:13:27Z")

</div>

Is it possible to reference a custom field in another field?

Creating custom field custom\_1

 ![Screenshot 2023-10-30 at 1.10.26 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/3/53e401eb58c81e0a98d11d8d996d034a3c4dfb6f.jpeg)

Creating custom field custom\_2  
`emit(doc['custom_1'].value)`

I get the following error  
`No field found for [custom_1] in mapping`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 27, 2023, 7:13pm UTC](https://discuss.elastic.co/t/reference-custom-field-in-another-custom-field/346066/2 "2023-11-27T19:13:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
