# Dynamic Text in Multi-State Indicator

**URL:** <https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [January 30, 2017, 5:10pm UTC](https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622 "2017-01-30T17:10:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loizel87](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Loizel87](https://forum.inductiveautomation.com/u/Loizel87)\
**Post date:** [January 30, 2017, 5:10pm UTC](https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622/1 "2017-01-30T17:10:17Z")

</div>

I am trying to create a multi-state indicator with a simple 2 state function. However I need to have the text value for each state to be dynamic. Each state's text will be read from a configured tag to allow the user to dynamically change the state during operation depending on function. Is there a work around to allow this feature or similar.

In the attached image I want to change the "Off" & "On" text to be from a tag within Ignition.

Thanks,

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 30, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622/2 "2017-01-30T17:31:59Z")

</div>

Loizel87

The Multi-State Indicator has a property in appearance called Styles, its dataset. You can bind this dataset using a cell update function. the cell update allows to select indivdual cells to tags etc.

---

<div class="post-metadata">

**Author:** ![Loizel87](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Loizel87](https://forum.inductiveautomation.com/u/Loizel87)\
**Post date:** [January 30, 2017, 5:56pm UTC](https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622/3 "2017-01-30T17:56:22Z")

</div>

Chris,  
Thanks that is exactly what I was looking for!

---

<div class="post-metadata">

**Author:** ![Koussaila\_Fekroune](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@Koussaila\_Fekroune](https://forum.inductiveautomation.com/u/Koussaila_Fekroune)\
**Post date:** [January 26, 2024, 7:31pm UTC](https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622/4 "2024-01-26T19:31:27Z")

</div>

je veux ecrire un texte canstant avec un texte dynamique et jarrive pas voici ce que jai ecrie  
'Température acctuel  
est:'{[default]Tags/HTST/PLC/HMI/Thermiseur/Therm\_Display/Actuel \_Temperature\_To\_reach.value}

---

<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:** [January 26, 2024, 7:50pm UTC](https://forum.inductiveautomation.com/t/dynamic-text-in-multi-state-indicator/12622/5 "2024-01-26T19:50:56Z")

</div>

Use a stringFormat in your expression:  
`stringFormat('Température acctuelest: %s', {[default]Tags/HTST/PLC/HMI/Thermiseur/Therm_Display/Actuel _Temperature_To_reach.value})`
