disable button when the textfield is required

its posible disable a button when i have a form, with some textfields required? i have a form like this. 

when I complete the form, the blue button should be enabled, I have local variables where I store my data.

another thing we tried to do was to do it with if, but there seems to be a hierarchy.

thanks you!

  Discussion posts and replies are publicly visible