# Perspective Label Expression Binding Doesn't Update

**URL:** <https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [March 27, 2023, 7:35pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671 "2023-03-27T19:35:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randolph\_Sewell](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Randolph\_Sewell](https://forum.inductiveautomation.com/u/Randolph_Sewell)\
**Post date:** [March 27, 2023, 7:35pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/1 "2023-03-27T19:35:35Z")

</div>

I'm trying to display on a label a certain value depending on which tag provider you choose in a dropdown menu. It only updates the value once when you first choose the provider from the dropdown.

I've tried every variation of this...  
EXPRESSION BINDING:  
"Value: " + tag({../Dropdown.props.value} + "pathToValue")

DIRECT BINDING:  
[siteProvider]pathToValue  
A direct binding to the tag works and updates live on the screen but obviously defeats the whole purpose of what I'm trying to do by choosing your site.

I've tried everything from Map transforms to indirect tag bindings and nothing works properly. The tag value I'm wanting to display changes every second so I don't see why the expression doesn't update alongside it.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 27, 2023, 7:46pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/2 "2023-03-27T19:46:03Z")

</div>

Your expression evaluation will be triggered by a change in `Dropdown.props.value`. That's what the expression is monitoring.

---

<div class="post-metadata">

**Author:** ![Randolph\_Sewell](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Randolph\_Sewell](https://forum.inductiveautomation.com/u/Randolph_Sewell)\
**Post date:** [March 27, 2023, 7:46pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/3 "2023-03-27T19:46:51Z")

</div>

So what would be the solution to make sure that the expression binding executes consistently and displays the latest value from the tag?

---

<div class="post-metadata">

**Author:** ![sydney.bosworth](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sydney.bosworth](https://forum.inductiveautomation.com/u/sydney.bosworth)\
**Post date:** [March 27, 2023, 7:47pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/4 "2023-03-27T19:47:53Z")

</div>

I tested it on my project and was able to get it to work using an indirect tag binding. It seems to be updating correctly. Sounds like you may have already tried this setup though?

 ![2023-03-27 14_43_49-Edit Binding_ Label.props.text](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5e6e105c166c708ffb55450ecbf22b8df9477d92.png)

---

<div class="post-metadata">

**Author:** ![Randolph\_Sewell](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Randolph\_Sewell](https://forum.inductiveautomation.com/u/Randolph_Sewell)\
**Post date:** [March 27, 2023, 7:51pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/5 "2023-03-27T19:51:31Z")

</div>

Yes I just tried that exact setup and it doesn't work unfortunately. It only evaluates the first time the option is chosen from the dropdown. Even when selecting a different dropdown option (aka site) then going back it still keeps the initial value. Would it matter that this value is inside a UDT? I figured out despite it working in another reference... the {../Dropdown.props.value} evaluates to "null" insite the indirect tag binding because even after selecting it and clicking apply and save the expression field stays empty.

---

<div class="post-metadata">

**Author:** ![sydney.bosworth](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sydney.bosworth](https://forum.inductiveautomation.com/u/sydney.bosworth)\
**Post date:** [March 27, 2023, 8:06pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/6 "2023-03-27T20:06:09Z")

</div>

Being inside a UDT shouldn't break it to my knowledge. So the value property of the dropdown is null? do the value and label options look ok?

---

<div class="post-metadata">

**Author:** ![Randolph\_Sewell](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Randolph\_Sewell](https://forum.inductiveautomation.com/u/Randolph_Sewell)\
**Post date:** [March 27, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/7 "2023-03-27T20:28:11Z")

</div>

Trying to change the reference in the indirect tag binding doesn't work at all. Its 100% a bug so I've called ignition support and will update this thread when I figure out the problem.

---

<div class="post-metadata">

**Author:** ![sydney.bosworth](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sydney.bosworth](https://forum.inductiveautomation.com/u/sydney.bosworth)\
**Post date:** [June 1, 2023, 3:37pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/8 "2023-06-01T15:37:21Z")

</div>

Did you get anywhere with this? Interestingly enough I have just run into a similar problem. I have 2 numeric entry fields and depending on a param, I want a custom property to bind to the value of the corresponding numeric entry. Can not for the life of me get it to update the custom property...

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 1, 2023, 6:13pm UTC](https://forum.inductiveautomation.com/t/perspective-label-expression-binding-doesnt-update/71671/10 "2023-06-01T18:13:22Z")

</div>

You can use an expression binding of this sort:

```auto
if({this.custom.selection_param} = 'something',
	{./NumericEntryField.props.value},
	{./NumericEntryField_0.props.value}
)

```
