# Radio Button - assign values

**URL:** <https://forum.kirupa.com/t/radio-button-assign-values/161168>\
**Category:** flash\
**Created:** [September 1, 2005, 1:05pm UTC](https://forum.kirupa.com/t/radio-button-assign-values/161168 "2005-09-01T13:05:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davehead](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Davehead](https://forum.kirupa.com/u/Davehead)\
**Post date:** [September 1, 2005, 1:05pm UTC](https://forum.kirupa.com/t/radio-button-assign-values/161168/1 "2005-09-01T13:05:07Z")

</div>

Hi all,  
I have a basic form with two radio buttons.  
They each have a label “1” and “2”.  
I have a dynamic text box - var name “total”.  
When r button “1” is selected, I would like “x” numerical value to be displayed in “total” and the same for r button “2”, but with “y” numerical value displayed.

I am assuming it is fairly simple, but have searched to no avail.

Thanks in advance.  
D
