How to change the widget button during game?

I have a unlock level system set up. Now I would like to make it so the level button icon is different after you unlock a level. Thank you!

if it something that you dont want to be clicked unless you level up and the button has a texture. then do this: get two textures ready. go to the button and in the options go to disabled image and set the image you want when you dont want the button to be unlocked. and in the normal one set the other texture that you want when the levelup is available. then according to whether the level up is available or not set the state of the button to disabled or enabled.

However if the button doesnt have a texture or you are adding text on top of it using widget bp then i dont see a problem. just bind the text(this can be done by selecting the text and then going to its options and then there will be a bind function next to “Text” field click on it and add a new binding). Binding creates a new function and whatever you return it gets set as the text. set the text according to condition. there is another way of doing this. this give you the advantage of variable reference to the text widget. simply select text and in the options on the top there will be a checkbox saying “is Variable” or something similar. just select that and it will create a variable for you using which you can use the Set text node to change its text.