In the button actor, did you click the yellow “eye”-con to make the variable visible?
You can also instantiate and access the variables via blueprint by unchecking “Context sensitive”, search for the variable’s name, then use [Set] while referencing the button’s instance.