Tagged Questions
0
votes
2answers
40 views
How to send user entered value on submitting with minimum validation or required error in angular js
Here we were trying to send the user entered input value to Servlet.
So below is one example, When user entered minimum length for input field then inbuilt angular validation occurs and because of ...
0
votes
1answer
71 views
Angularjs custom validation directive Async call real time validation
I am using custom validation directive to validate a field in a form and the validation process includes a AJAX call to verify user information with server API. We want to validate the field as long ...
1
vote
1answer
139 views
how to do conditional maxlength in angularjs
does anyone know how to do conditional maxlength in angularjs, I have found conditional required but not maxlength etc....
for example if maxlength given ...it should validate but if maxlength is 0 ...
0
votes
1answer
56 views
$rootScope:infdig error in AngularJS when using ng-disabled to validate a collection of elements
I've got an issue with an AngularJS app I'm writing, and I've created a very simplified version of it here: http://plnkr.co/edit/55JlCxVV1SSKfcQgbICb?p=preview
My issue is that, when using ...
0
votes
0answers
76 views
AngularJS custom directive using custom validation: controller scope variables
I have two input boxes in a custom directive template. I've also created custom validation for the boxes to accept only valid time entries. How do I change the condition in my custom validation to ...
0
votes
2answers
63 views
Executing regex statements over object-array with Javscript/jQuery
I'm looking to use regex to do some form manipulation based on the user's credit card input (note: this is only front-end validation for the sake of UX, another service and API handles actual credit ...
0
votes
2answers
137 views
How to use angularjs form validation in a non-angular SPA app
I wonder if anyone can help. On the surface of it, my question title may sound kind of stupid! I'm trying to use angularjs form validation in a non-angularjs application! Let me try to explain ...
We ...
0
votes
1answer
69 views
angularjs form can not refer to input control when input name is array
I encounter a problem when testing form validation with angularjs
According to angularjs form guide,
an input control that has the ngModel directive holds an instance of NgModelController. Such ...
0
votes
1answer
438 views
Change Controller variable value from change in isolate scope directive
So I know with two way binding, =, in a directive a controller's value can be passed into the directive. But how do you pass a change in the isolated directive back to the controller?
So for example, ...
0
votes
1answer
516 views
Validation doesnt work for File Input with 'Required' attribute- AngularJS
I have been playing around this and couldnt get it to work. I was creating an angular form and I was able to get the validation to work when required attribute is added to the text field. However, if ...
1
vote
1answer
750 views
Unable to get $error.maxlength validation in Directive
I am creating a directive that adds a template with text type input to the view. In this directive, I am trying to add the span class for error notification if the text field input is more than max ...
2
votes
1answer
1k views
How get AngularJS element by name?
In my form validation there is part of server validations.
So I should get back from the server list with the names of the fields and a string with the error in each of them.
My idea was to write a ...
0
votes
3answers
85 views
validation of a form added with a directive
I would like to access the content of the validation variables provided from AngularJS for the forms.
I need to add forms using a directive like in the code, but if I do that I can't access the ...
1
vote
1answer
109 views
How do I correctly check form validity within a watcher when model data is changed outside of the form in angularjs?
I'm still quite new to AngularJS and I think I'm having trouble understanding the timing with $scope. In a controller, I've setup a watcher for some model data that is bound to various form elements. ...
0
votes
1answer
785 views
How to validate age using Angularjs?
We are using Angular js for our project. And all the Validation we are handling through the Angular js.
We are able to validate all the text field except the drop down box.
We have three dropdown ...
4
votes
1answer
661 views
Angular.js - does form validation emit any events?
The problem is, I'm using ui-router and I have two views, one is kind of a toolbar, second is content with a form.
Now I'd like to have a save button in the toolbar, which would be disabled if form ...
14
votes
2answers
3k views
How can I make a directive in AngularJS to validate email or password confirmation without DOM manipulation or jQuery?
I want to create a password / email confirmation directive in AngularJS, but all the ones I've seen so far rely on a lot of DOM poking or pulling in jQuery. I'd like to rely only on $scope properties ...