No output pin on variable

I am following the Creating and Displaying UI tutorial on the Unreal site. Creating Widgets in Unreal Engine | Unreal Engine 5.2 Documentation
When I promote to variable off of the return value there is no output pin. I am using Unreal version 4.6.1. I realize this is an older version, which may be the issue but this is the only one I have access to as of now. I am using Unreal on a computer with no internet connection so I am unable to update. Any assistance would be appreciated.

I think that may be the solution. Let me test.

In the tutorial that I am following, I am attempting to show then hide text on whether I am holding the Enter key or not. I used “Cast To” instead of “Promote to Variable”, which works to show the text but when I release Enter the text does not go away. Once again, this is all in the tutorial: Creating Widgets in Unreal Engine | Unreal Engine 5.2 Documentation.

Yes. Because you need the reference to your text widget when you want to manage it after…
You need the promote to variable, so create your widget, cast to and promote to variable then compile.
Let me know if it works.

You need to put the cast to node between the create node and the promote to variable because you’re using an old version I think.

Thanks for response. I added the Promote to Variable off of the Cast to node. I am not sure how to connect the Add to Viewport from there. I attempted this in a few different ways but it only shows the text and doesn’t disappear. Please, let me know if I have the right idea in the image I have attached.

Unfortunately, that isn’t working either. I will keep trying to troubleshoot and let you know if I can figure anything out. Thanks.

Finally I found your problem… You cannot get your variable directly in the set node…
You need to use a get node.

Try this… From the cast node promote to variable.
Then right click and type get sampleui, connect to the target in the add to viewport node.

And you can remove the cast to node… I see in your picture you have selected the class in the create node like my engine version.

Okay, I Promoted to Variable from the Cast node. I then added the get SampleUI node and connected it to the add to viewport and I am still getting the outcome. Let me know if the picture I attached is correct.

Ok remove the cast to node.
Plug the output execution pin of the create widget into the in exec pin of set node and the blue pins.
Plug the out exec pin of the set node in the add to viewport.
Finish

It worked. Thank you for the help. I know what I was attempting to do is minor but I know if there are workarounds for something this minor then there definitely will be later.

Ahhh finally!
Feel free to ask!

Ok remove the cast to node. Plug the output execution pin of the create widget into the in exec pin of set node and the blue pins. Plug the out exec pin of the set node in the add to viewport. Finish