Get variable from blueprint in c++ on click

Hi,
I use text box in widget to get string. How i can acess this string in c++ class after submiting it?