how can click a button than print a string

in HUD Blueprint i have draw a button
in level Blueprint have a print function
I want to click the button than print a string,the button in the HUD Blueprint,the print string function in the level Blueprint.

If what you want is communicating between your HUD BP and your Level BP, this page might help you:

I have seen the document,because HUD can’t drag in the level scene so I don’t known how to Specifying the Blueprint this
and in the HUD blueprint i also don’t known how to new a level blueprint variable.

I’ve started playing around with the HUD bp and usually what I do is pass information to the player controller or pawn class and relay the information from one of those two bps. Hope this helps.

OH,Thank you very much!