Hi there
Have not yet seen CP7, but unless they dramatically changed things, the Button is simply an option you turn on for a Text Entry Box object. There is no way to "link" a regular button to a Text Entry Box. The action for the script will need to be associated with the Text Entry Box object itself if that's what you are hoping to do.
Cheers... Rick