Form success and error not working

So, I have a form like this.
image
I want to make the “submit” button to show the success text. can i do that? Because currently its not doing anything.

Is it a form submit button or a regular button?
It needs to be a form submit button to submit the form.