# Adding dynamic text box values - NaN

**URL:** <https://forum.kirupa.com/t/adding-dynamic-text-box-values-nan/161282>\
**Category:** flash\
**Created:** [September 2, 2005, 1:36pm UTC](https://forum.kirupa.com/t/adding-dynamic-text-box-values-nan/161282 "2005-09-02T13:36:14Z")\
**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 2, 2005, 1:36pm UTC](https://forum.kirupa.com/t/adding-dynamic-text-box-values-nan/161282/1 "2005-09-02T13:36:14Z")

</div>

Hi all,  
I have a movie that contains a series of radio button groups, which each have their own accompanying dyn text box.  
When a certain radio button is selected, a pre-determined value is loaded into each respective groups’ text box, via “onRelease”.

Now, I can get these values to appear fine in each text box, but I then have a fourth text box ( **amount\_total** ), into which I want to have the sum of all the previous text box’s values.

I have a submit button with the following actions on the first frame of the timeline:

**onSubmit = function (){  
\_root.amount\_total = Number(\_root.total\_surf) + Number(\_root.total\_music) + Number(\_root.total\_video);  
}**

Now, when I hit the submit button NaN is returned.  
Any ideas as to what the possible issue is here ?  
FLA posted

Cheers  
D
