# Button - Style Customizer - Indirect Binding for Text

**URL:** <https://forum.inductiveautomation.com/t/button-style-customizer-indirect-binding-for-text/30365>\
**Category:** Ignition\
**Created:** [December 2, 2019, 3:34pm UTC](https://forum.inductiveautomation.com/t/button-style-customizer-indirect-binding-for-text/30365 "2019-12-02T15:34:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cole.sharrah](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cole.sharrah](https://forum.inductiveautomation.com/u/cole.sharrah)\
**Post date:** [December 2, 2019, 3:34pm UTC](https://forum.inductiveautomation.com/t/button-style-customizer-indirect-binding-for-text/30365/1 "2019-12-02T15:34:23Z")

</div>

In the image below, my current setup is:  
Site ON  
Site OFF  
I want to basically use an expression in the text field area to indirectly bind to each site, where each site has 3 or more wells on it.  
ie;  
Sites: Site1, Site2, Site3  
Well, per site: Well1, Well2, Well2

In the top button I want it to say, depending on which site:  
Site1 ON - Site1 OFF  
Site2 ON - Site2 OFF  
In the bottom button depending on which well:  
Well1 ON - Well1 OFF  
Well2 ON - Well2 OFF

The color change works fine with the regular Style Customizer functions.

The indirection comes from custom properties on the root container where they are used elsewhere in expression bindings. The hangup is using this in the style customizer to bring the text in, held in a memory tag on each site and well.  
This works to bring in the Site name, but I can not switch between on and off text with this expression binding alone.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1fb3fab4d5b77f39ea750264e66d71268184368d.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5e6b9dcce1a4be17f2a989a2c2015c749b410783.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1893691a004a7d3109f2ac1b67aeb70c0dd769a4.png)

Please and thanks!

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 2, 2019, 4:22pm UTC](https://forum.inductiveautomation.com/t/button-style-customizer-indirect-binding-for-text/30365/2 "2019-12-02T16:22:14Z")

</div>

You won’t be able to use style customization and an expression binding at the same time.

Remove the text binding in the style customizer and fully use the expression binding. Example:

```auto
concat(tag({Root Container.UDT_Path_Over} + '/PadID'), 
	if({./state} = 1, ' ON', ' OFF')
	) 

```

Replace with whatever controls the state of the button style.

As a note, if you use ‘+’ to concatenate strings, you don’t need to use a concat function.

---

<div class="post-metadata">

**Author:** ![cole.sharrah](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cole.sharrah](https://forum.inductiveautomation.com/u/cole.sharrah)\
**Post date:** [December 2, 2019, 5:01pm UTC](https://forum.inductiveautomation.com/t/button-style-customizer-indirect-binding-for-text/30365/3 "2019-12-02T17:01:12Z")

</div>

Ah, thank you, I will give it a try.
