Text field changes don't change attributes

I am doing a project for school in Gamesalad that is supposed to calculate the number of bonds in a chemical substance. The interface is simple: Four slots on the left side of the screen for the name of the element and four slots on the right side of the screen for the number of atoms calculated. When you press one of the slots for the number of atoms it has a text field that pops up and you enter a number such as 2. The attributes for this are always set at 1 until they are changed by the user. My problem is that the number the user enters is not factored into the equation. The attribute is for some reason always set at one. What is the problem?