Wanting to Learn how to do this in UE4

do you know how to save the variables after the widget is closed, i am trying this exact thing, and the game just refuses to remember the chosen attributes.