# How can i read scripted field values from another

**URL:** <https://discuss.elastic.co/t/how-can-i-read-scripted-field-values-from-another/165183>\
**Category:** Kibana\
**Created:** [January 22, 2019, 8:31am UTC](https://discuss.elastic.co/t/how-can-i-read-scripted-field-values-from-another/165183 "2019-01-22T08:31:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)\
**Post date:** [January 22, 2019, 8:31am UTC](https://discuss.elastic.co/t/how-can-i-read-scripted-field-values-from-another/165183/1 "2019-01-22T08:31:07Z")

</div>

1)have a scripted filed named called that's has this condition

if (ADRINTeleServiceCode=='0' &;& ADRINTrafficCase=='2')

called=callingPartyNumber;(npt painless format here)

and I have another scripted field name Type that depends on the output of this one in this condition

if ((ADRINTeleServiceCode=='4') && (called =='1020'))

TYPE= "LOTO"

how can I work around this issue and also  
2)if I want to like use the same scripted value to edit itself in the field for example if I returned a value to the field called then use a condition after the return to change like called = called + "2"

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [January 22, 2019, 10:25am UTC](https://discuss.elastic.co/t/how-can-i-read-scripted-field-values-from-another/165183/2 "2019-01-22T10:25:27Z")

</div>

It is not possible to use the scripted filed value in another scripted field

---

<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:** [February 19, 2019, 10:25am UTC](https://discuss.elastic.co/t/how-can-i-read-scripted-field-values-from-another/165183/3 "2019-02-19T10:25:27Z")

</div>

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