# Changing Widget text from variable value not working.

**URL:** <https://forums.unrealengine.com/t/changing-widget-text-from-variable-value-not-working/1855644>\
**Category:** UI\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 14, 2024, 1:38pm UTC](https://forums.unrealengine.com/t/changing-widget-text-from-variable-value-not-working/1855644 "2024-05-14T13:38:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![5A4B48](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@5A4B48](https://forums.unrealengine.com/u/5A4B48)\
**Post date:** [May 14, 2024, 1:38pm UTC](https://forums.unrealengine.com/t/changing-widget-text-from-variable-value-not-working/1855644/1 "2024-05-14T13:38:20Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/b/dcb87ca3fc9517400f68d30b082c6afefa445769.png)

This is my blueprint.  
I am getting Ticket Count Variable from a custom event and show it on Widget text.  
That SetText (Text) seem not working.  
I checked with print text node and that print text node is working and showing Ticket Count value.  
(That mean I got the Ticket Count value right)

And Again I try with “Event Construct” instead of my custom event, now SetText is working and changing values continuously.  
(So my custom event is problem? but only SetText is not working with custom event. Print text is working with custom event as I mention above)

---

<div class="post-metadata">

**Author:** ![5A4B48](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@5A4B48](https://forums.unrealengine.com/u/5A4B48)\
**Post date:** [May 14, 2024, 6:41pm UTC](https://forums.unrealengine.com/t/changing-widget-text-from-variable-value-not-working/1855644/2 "2024-05-14T18:41:03Z")

</div>

Update.

It is also working fine when I show that widget with add to viewport note.  
It is only not updating variable when I call it in Actor blueprint.  
I have to call it in Actor blueprint because I want to have that text on my 3d model.
