Error message for pattern validation

Hi All,

I have a form where an email needs to be entered and is validated by the “pattern validation” in the input fields.

I want an error message to display if the pattern is not validated and I also want the submit button to not work.

Any ideas on the code for this.

Thanks
Victor