Questions tagged [ui-validate]

11 questions
10
votes
4 answers

Angularjs Form/Field validation using JavaScript function without directives

Is there a way to validate a field in angular without using a directive? For example: I want to make following validation on an input field. If field is empty we should show "Field must contain a value" message. if field contains alpha Numeric…
Scription
  • 646
  • 3
  • 12
  • 21
5
votes
2 answers

How to Disable md-button

I have a form(HTML) and a directive to do stuff when submit button is clicked.The form has 10 input fields. The requirement is to keep the submit button which is a disabled till the time user enters value in at least one field. Can anyone please…
3
votes
1 answer

AngularJS : Validating against multiple datepickers

Considering 3 dates : myDate1, myDate2, myDate3. I'd like to validate that myDate1 < myDate2 < myDate3 Dates are set by the date picker directive found in angular-ui. Here is a plunker : http://plnkr.co/edit/FTcJNHxuv3RFtBCUw7Ck I'm having…
Florian F
  • 8,822
  • 4
  • 37
  • 50
2
votes
1 answer

ui-validate doesn't get called

I have an input element (actually a datepicker) with the following attribute: ui-validate="{ customValidation: 'validateDate(vm.dob)' }" In my javascript I have the following method on my scope: $scope.validateDate = function(val) { …
PeteGO
  • 5,597
  • 3
  • 39
  • 70
1
vote
2 answers

Angular UI-Validate without input field (validate expression)

Im using ui-validate utils https://github.com/angular-ui/ui-validate The problem is to validate expression on the form without input field. For example? I have an object $scope.item = { field1 : 0, field2: 0, field3: 0 }; I would like to receive…
0
votes
0 answers

Validate dynamic inputs in angularjs directive

I am trying to validate several inputs that are generated dynamically from a counter. The problem is that when calling function that validates that it's correct or not (with ui-validate) it seems that only took one value and applied it to all at…
Norak
  • 383
  • 2
  • 6
  • 14
0
votes
2 answers

How do I check if a username is taken with parse.com when all User ACL:Public read/write is disable?

How do I check if a username is taken with parse.com Javascript SDK when ACL:Public read/write is disable in all users inside User's class? Explanation: For security reasons all my users in class/table User have a private ACL (Access control list),…
lito
  • 3,105
  • 11
  • 43
  • 71
0
votes
1 answer

Angularjs UI validate watch issue

I'm trying to make a range validation between 2 numeric inputs. The inputs represent base remuneration and top remuneration. I tried to use ui-validate-watch like this: http://jsfiddle.net/GNJP4/3/. The problem is that basically lowerBound is not…
RCarranza
  • 702
  • 8
  • 10
0
votes
1 answer

AngularJS validation that is dependent on other scope property values

I'm trying to implement some validation using AngularJS. I have a list of inputs bound to a list of objects in the scope, and I want to make sure that the value in each input is greater than or equal to the value in the input before it (let's assume…
Simon Green
  • 1,131
  • 1
  • 10
  • 28
0
votes
1 answer

Use ui-validate inside a directive template

It´s possible to use ui-validate inside a directive template like plunker example? Plunker: http://plnkr.co/edit/H6v6nVobIM3EKmAVHZHa?p=preview template.html
-3
votes
2 answers

How to Validate c# textbox visual studio 13

How should I validate textbox for only accepting numbers, only alphabets other important validations that could be needed. Using properties window of visual studio. Or any other best way. private void txt5ValGood_TextChanged(object sender, EventArgs…