2

I have searched and followed the angular code for a long time and cant find where this error message is coming from. I know the validation works but my code only has this:

<span class="error" ng-show="myForm.input.$error.required">
        Required!</span>
      <span class="error" ng-show="myForm.input.$error.email">
        Not valid email!</span></br> 

but this error comes up:enter image description here

I cant even find where a concatenation might produce this. The word "Please" is not even in the angular code.

2
  • Guessing here: the browser, because of HTML5 support of "type='email'"? css.dzone.com/news/custom-validation-messages Commented Jan 10, 2013 at 0:59
  • Mark, Put it in as an answer so i can give you credit. Commented Jan 10, 2013 at 1:06

3 Answers 3

10

The browser is generating this message, because of HTML5 support of "type='email'".

Sign up to request clarification or add additional context in comments.

Comments

10

you can add 'novalidate' in form to disable native HTML5 validation.

<form name="form" class="css-form" novalidate>

1 Comment

this is the proper response
2

This is due to HTML5. If you don't want to show these messages, add the following to your css:

::-webkit-validation-bubble-message { display: none; }

However, at the moment this only works for WebKit implementations (Chrome).

More info

2 Comments

using novalidate directive is the angularjs way
I don't think it's an angular directive. It's part of HTML.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.