# Using buttons in UMG to change integer values.

**URL:** <https://forums.unrealengine.com/t/using-buttons-in-umg-to-change-integer-values/302160>\
**Category:** UI\
**Tags:** button, unreal-engine, question, Blueprint, UMG\
**Created:** [December 21, 2014, 7:00am UTC](https://forums.unrealengine.com/t/using-buttons-in-umg-to-change-integer-values/302160 "2014-12-21T07:00:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a548922](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@a548922](https://forums.unrealengine.com/u/a548922)\
**Post date:** [December 21, 2014, 7:00am UTC](https://forums.unrealengine.com/t/using-buttons-in-umg-to-change-integer-values/302160/1 "2014-12-21T07:00:13Z")

</div>

I am attempting to figure out how to update a value in myplayer blueprint after clicking a button in my widget screen. I am trying to set up a widget that when opened, will let you select the tax rate you want to charge your population with. I have all the values and formulas, just don’t know how to update the value after selecting the tax rate button. Any thoughts on this. Been at it for 8 hours watching videos and reading forums.

Any help appreciated.Thanks!

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [December 21, 2014, 8:22am UTC](https://forums.unrealengine.com/t/using-buttons-in-umg-to-change-integer-values/302160/2 "2014-12-21T08:22:48Z")

</div>

Hi a548922,

Try this, you mention your _PlayerBlueprint_ has your **Tax System**. So I suggest if you don’t already have functions created, do so in order for the _UserWidget_ to interact with your _PlayerBlueprint_. Since the UserWidget has **Get Owning Pawn** ( _assuming this is your PlayerBlueprint_ ) , if we purecast it to _PlayerBlueprint_, then bind events within **UMG** such as Clicks to the functions on the _PlayerBlueprint_ such as Save. We can imagine that once a key is hit, or a submit button is hit the values are sent to the function on the _PlayerBlueprint_ to communicate to your _Tax System_.
