# Dynamically build tag path in expression binding

**URL:** <https://forum.inductiveautomation.com/t/dynamically-build-tag-path-in-expression-binding/86222>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 22, 2024, 10:45pm UTC](https://forum.inductiveautomation.com/t/dynamically-build-tag-path-in-expression-binding/86222 "2024-02-22T22:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruce\_Wayne](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bruce\_Wayne](https://forum.inductiveautomation.com/u/Bruce_Wayne)\
**Post date:** [February 22, 2024, 10:45pm UTC](https://forum.inductiveautomation.com/t/dynamically-build-tag-path-in-expression-binding/86222/1 "2024-02-22T22:45:51Z")

</div>

Hello, I have a Label component that I would uses expression binding. I am having trouble dynamically building the path to a tag and need some help. I have custom property that have a 2 digit value that I am using to build with. I am trying to use the first digit of the property in one portion of the path and both digits in another portion. Here is an example of the tag and custom property:

```auto
{[default]This_is_a_path} & {view.custom.prop_name}

```

Here is an example of how I am trying to use them:

```auto
"some text " + {"[default]This_" + left({view.custom.prop_name},1) + " " +{view.custom.prop_name} + "_is_a_path"}

```

Is there a way to use a dynamic tag path for what I am doing?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [February 23, 2024, 12:07am UTC](https://forum.inductiveautomation.com/t/dynamically-build-tag-path-in-expression-binding/86222/2 "2024-02-23T00:07:56Z")

</div>

Make a custom property on the label, and apply an indirect tag binding on it like such:

> **Indirect Tag Binding Example**
>
> ![IndirectTagExample](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6a3a99d8b82b47d5fbf17c659c4630466fb70a0d.png)

then change your label's value binding to be the expression:

```auto
"some text here" + {this.custom.indirectTagBindingValue}

```

[Manual Page](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/bindings-in-perspective/tag-bindings-in-perspective#indirect-tag-binding-mode)

---

<div class="post-metadata">

**Author:** ![Bruce\_Wayne](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bruce\_Wayne](https://forum.inductiveautomation.com/u/Bruce_Wayne)\
**Post date:** [February 23, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/dynamically-build-tag-path-in-expression-binding/86222/3 "2024-02-23T15:43:56Z")

</div>

Exactly what I was looking for! Thank you!
