hook on click event in the interface widget to the character attack animation blueprint

I have interface widget with a button I’m trying to use this button from my character
Example :
player hit right mouse button then interface widget will show attack button when you click the attack button the character will attack
I don’t know how to hook the on click event in the interface widget to the character attack animation blueprint