angular-validation icon indicating copy to clipboard operation
angular-validation copied to clipboard

How to know which field is triggering an error

Open YamilBracho opened this issue 9 years ago • 5 comments

Hi, I have some tabs with many fields and I am getting this error message angular.js:14324 Angular-Validation Service requires you to have a (name="") attribute on the element to validate... Your element is: ng-model="undefined"

How do I know which field is ?

TIA, Yamil

YamilBracho avatar Jun 08 '17 18:06 YamilBracho

I also got this message :

angular.js:14324 Possibly unhandled rejection: Could not translate: 'Angular-Validation Service requires you to have a (name="") attribute on the element to validate... Your element is: ng-model="undefined"'. Please check your Angular-Translate $translateProvider configuration.

IN my configuration, I got

$translateProvider.useStaticFilesLoader({ prefix: 'resources/js/angular/angular-validation-ghiscoding/locales/validation/', suffix: '.json' });

// define translation maps you want to use on startup $translateProvider.preferredLanguage('en'); ....

I am positive those all trasnalation files are in right path.

Any hint of rthis problem ?

YamilBracho avatar Jun 08 '17 20:06 YamilBracho

I think that you should take time to read the entire How To. It looks like you're missing a lot of configurations.

Your first error is like it says, each input requires a name attribute in your HTML for Angular-Validation to work correctly. That is something like <input name="input1" ng-model="firstName" />

ghiscoding avatar Jun 08 '17 22:06 ghiscoding

Yes, You are absolutely right....!! Sorry, I want to run before I walk...

Thanks!!!

YamilBracho avatar Jun 09 '17 00:06 YamilBracho

Can we close the issue then?

ghiscoding avatar Jun 09 '17 03:06 ghiscoding

Hi, Yes, sure... Thanks

YamilBracho avatar Jun 09 '17 14:06 YamilBracho