# UI-State-trail mustache template not working in 0.4.4

**URL:** <https://discourse.nodered.org/t/ui-state-trail-mustache-template-not-working-in-0-4-4/60443>\
**Category:** Dashboard\
**Created:** [28 March 2022 10:45 UTC](https://discourse.nodered.org/t/ui-state-trail-mustache-template-not-working-in-0-4-4/60443 "2022-03-28T10:45:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [28 March 2022 10:45 UTC](https://discourse.nodered.org/t/ui-state-trail-mustache-template-not-working-in-0-4-4/60443/1 "2022-03-28T10:45:56Z")

</div>

I updated ui-state-trail from 0.4.2 to 0.4.4 and found that the label is not updating where i have used mustache template

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0ea1b2666b1947aa4b953f81e910b0f0e79a5f97.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/e/1e35179e1505a13c1837f4b3078a39943f133ce9.png)

i was getting the values into this in earlier version.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/d/fdba2ef6a22c5e7bacbc0ef12bd677d8080d960f.png)

is it a bug ?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [28 March 2022 11:28 UTC](https://discourse.nodered.org/t/ui-state-trail-mustache-template-not-working-in-0-4-4/60443/2 "2022-03-28T11:28:32Z")

</div>

Some things has been changed between those versions. It was never promised out, that mustache is supported at the configuration.  
What is supported, - you can change the label by using `msg.control`  
See the [README document](https://flows.nodered.org/node/node-red-contrib-ui-state-trail)

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [28 March 2022 11:46 UTC](https://discourse.nodered.org/t/ui-state-trail-mustache-template-not-working-in-0-4-4/60443/3 "2022-03-28T11:46:46Z")

</div>

Got it. Thanks for the help.  
placed a change node with jsonata expression to set property `msg.control.label` and kept the label field in state-trail blank.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0aa4ed6eb4a925ef4b78d7297bdd9c78bab89411.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee165b48ec3f5c0b646e8aa2349755460276119d.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 April 2022 11:47 UTC](https://discourse.nodered.org/t/ui-state-trail-mustache-template-not-working-in-0-4-4/60443/4 "2022-04-11T11:47:00Z")

</div>

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