I'm doing an assignment for college ( Yes I know you don't do home work lol) and having problems with buttons. Its a facebook style application. I have 3 buttons connected with 3 text fields and they output a result in the console. One button that I've called status, the user rights a comment and it will say " Your status: hello" Now I've managed to make that work, its when there's nothing in the filed and the user clicks on the button the "Your status:" will still open up and I don't want this happen.

I will post some code if needed.