# How to compare the value of field with the input value from the screen to take an action?

**URL:** https://discuss.elastic.co/t/how-to-compare-the-value-of-field-with-the-input-value-from-the-screen-to-take-an-action/350168
**Category:** Kibana
**Created:** [January 1, 2024, 5:37am UTC](https://discuss.elastic.co/t/how-to-compare-the-value-of-field-with-the-input-value-from-the-screen-to-take-an-action/350168 "2024-01-01T05:37:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![adnan-ali](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@adnan-ali](https://discuss.elastic.co/u/adnan-ali)
#### Post date: [January 1, 2024, 5:37am UTC](https://discuss.elastic.co/t/how-to-compare-the-value-of-field-with-the-input-value-from-the-screen-to-take-an-action/350168/1 "2024-01-01T05:37:32Z")

</div>

in the tree map value ,we need to change the background color of tree map cell depend on the input value from the screen to comparing with value on tree map  
EX:  
tree map value is 1000 .  
input value from screen is 1200.  
we need to compare matric value with  
if value of tree map is greater than input value the background for tree map cell is red else background green

---

<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: [January 29, 2024, 5:38am UTC](https://discuss.elastic.co/t/how-to-compare-the-value-of-field-with-the-input-value-from-the-screen-to-take-an-action/350168/2 "2024-01-29T05:38:29Z")

</div>

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