Questions tagged [angularjs-validation]

AngularJS validation patterns, syntax and properties. Validation of forms, controls, models using various angular validation directives.

145 questions
3
votes
1 answer

Dynamic form validation in angularJS not working

I have created dynamic form, And adding the ng-required attributes dynamically to my controls. but now it's not working . This is my JS : var app = angular.module('birthdayToDo', []); app.controller('main', function($scope){ …
3
votes
1 answer

kendo ui, angular require validation for numeric text box

I am trying to use a kendo numeric text box with angular validation (ng-required) however I'm not able to get it working. The ng-required attribute on this element has no effect on the form validation status. From my understanding, the reason why…
3
votes
2 answers

Form change and validity in angularjs

Whenever any non-readonly input in my form changes and the form is valid, I want to do certain action. Let's say, my form looks like
maaartinus
  • 44,714
  • 32
  • 161
  • 320
2
votes
0 answers

Custom validation in input field for unique value

I've to use AngularJS 1.7 for a project where I have a form and have to validate an input field to be required, to have a particular pattern and to have unique values. For this I'm doing this : input#item-name( name="name", type="text", …
pkdq
  • 191
  • 1
  • 14
2
votes
2 answers

Angular JS form validation in "myApp" application.

I am new to AngularJS and try to implement form validation in "myApp" app. I wrote the code below. The {{result}} should output "true"/"false". But it didn't work.
2
votes
1 answer

TypeError: Cannot read property '$dirty' of undefined

I have an Angular form with name p24Form
2
votes
2 answers

"Required" validation doesn't work in field:
Samir Shah
  • 709
  • 3
  • 12
  • 23

2
votes
3 answers

adding ng-invalid class on input mismatch

Angular adds ng-invalid class automatically to email input field if it's invalid, how's it possible to have the class ng-invalid added to input#confirmEmail if it's doesn't match to input#email and remove if they match. Basically I'm not required to…
user3610227
2
votes
1 answer

Dynamic form names and ng-repeat

I need to create several forms on a page based on a dynamic list I get from server. In order to do that I'm trying to use angular ng-repeat like so: …
2
votes
1 answer

Why does ng-messages for form validation not work when using $rollbackViewValue

I have a form using ng-messages for form validation error messages. Im also using the new ng-model-options with $rollbackViewValue to rollback all changes to the form. Problem is ng-mesages will not work if I use the rollbackViewValue on the form. I…
jmccommas
  • 567
  • 2
  • 12
  • 31
1 2
3
9 10