How to press a button through UMG Widget

Hi everyone. I’m trying to make a button that when it is pressed it will change my game perspective. So I did it with keyboard button and it works well.

But, I want to do the same function like the first one, when I press this button

I spent some time searching for answers and I don’t really see that they are related. Can anyone help? Thanks.

Create a Custom Event in the Third Person Character (TPC) blueprint and hook it up to the same nodes as the V key.
In the widget, Get Player Character, cast to TPC, call the aforementioned event.

This video may help you. I create a button that affects player health when it is clicked. Just replace the script changing the health to a script that changes your view and you are good to go.

This is what you want