Check response and button appearance appear based on latex input

I am trying to get certain components dependent on an algebraic expression in the math input. If the expression is 2x^2, I want the submit and explain button to appear, and a comment such as good job. Otherwise I would like the submit to be disabled and a feedback note to say no, try again.

I am trying to do this on the 4th slide of the draft of the activity shown.

You can only disable the initial Submit button. If you just wanted to disable feedback until they submit a correct answer, you could have a note and input that are conditionally hidden.