50 questions
0
votes
0
answers
82
views
Angular js form validation without html form
I have an input tag
<div class="form-group" ng-form name="patientLinkingForm">
<input type=&...
0
votes
0
answers
71
views
Custom Angular Validation based on a selection radio select button
I need some help in that i have validation working partially. When one selects a payment method called CC the user input needs validation to kick in instantly and wont allow one to input the wrong ...
0
votes
1
answer
108
views
Angular js allow alphabetical caharacters and special characters but not numbers
My directive is below. What i want is that to allow alphabetical caharacters and special characters but not numbers. How can we changed that based on my code below.Thank you.
app.directive('...
0
votes
0
answers
191
views
ngPattern problem with dynamic forms inside ngRepeat
I've been stuck on a problem for a while now and I feel I've exhausted all efforts.
I have a dynamic form created using an ng-repeat, for some reason ng-pattern will not work in this scenario, ng-...
0
votes
1
answer
719
views
Angular js Ng-pattern does not allow update the model
i have to validate the text box which shows the error message when user enters 4 digit as 9999.so i have used the ng-pattern method to show error message but ng-pattern does n't allow to update the ...
1
vote
1
answer
727
views
angularjs ng-pattern change css style of elements based on regex condition
In my angularjs form, I am checking the password pattern with a regex that checks for multiple conditions. Based on different condition checks of this regex, I want to change the css for one of the ...
0
votes
3
answers
3k
views
How to allow only 3 digit and one dot in Regular Expression
I want to do like this : 3.40 and not more than 3 characters and one dot:
<md-input-container class="md-block">
<label>Marks/CGPA</label>
<...
0
votes
2
answers
2k
views
AngularJS with ng-pattern in form does not send invalid field to server
I want to validate a text input in form, so the submit of the form could not be done until the input match a regular expression. But when I type a wrong field value and I clik submit the form is ...
0
votes
1
answer
833
views
How to validate value 1 and 1.00 as same and 1.01 as different in angular
How to treat 1 and the number of decimals should be zero eg) 1.000 as same
show the alert pop up number should be same.And the maximum number length of the texbox is 7.
eg)1 and 1.00000001 be ...
-1
votes
2
answers
400
views
Regular Expression for ng-pattern
I want my input text to accept following characters only
1,2,3,4 and 5+
And to validate the above character I need a regular expression (ng-pattern).
Is their any perfect website to learn Regular ...
-2
votes
1
answer
24
views
Match an expression with no << or ]] [duplicate]
I need to match the pattern only if << or >> or ]] or [[ is not present in the string.
If any of these special characters are present the match should be zero else it should match.
For ...
0
votes
2
answers
103
views
Regex acts weird
I want to create a regex expression that I can pass to ng-pattern so that the input can only be valid if the string has only uppercase/lowercase latin letters from a to z, n with tilde, and vowels ...
-1
votes
1
answer
74
views
Regular Expression Generation for AngularJS ng-pattern
I'm using a regex to validate a form input. So basically a user can input "SELECT some_name of select_match".
So far I have the regex: \bSELECT\b \bof select_match\b
The last part is the middle part, ...
2
votes
1
answer
2k
views
ng-pattern for only hebrew characters
I want to use ng-pattern validate my text input field that should accept only Hebrew characters, sometimes the input are ok and sometimes they are being rejected for some reason. (the first one is ...
4
votes
2
answers
10k
views
Australian Mobile number regular expression validation needs to allow space in between number
I need to validate the mobile number
first text input starting with 04
should be total 10 digits including 04(eg : 0412345678)
my input field is below
<form name="uploadForm">
<input type="...
0
votes
2
answers
4k
views
How to use ngPattern to validate an input containing restricted characters?
I try to validate the input of restricted characters. The input field only accept alphabet, dash and underscore characters.
When I test the code below, the first character is accepted, but the second ...
0
votes
0
answers
201
views
Adding ng-pattern dyanmically through a directive isn't kicking off validation
I'm attempting to add ng-pattern to specific inputs on specific forms using the following directive. It's adding the ng-pattern, but the validation isn't working. However, the validation works fine ...
0
votes
0
answers
39
views
ng-pattern not accepting '@' special character in validation [duplicate]
NET MVC, HTML 5 and Angularjs, i am having trouble on using ng-pattern in the password field validation.
this is my pattern
ng-pattern="/^(?=.*[0-9])(?=.*[!#$%^&*])[a-z0-9!#$%^&*]{8,16}$/"
I ...
12
votes
4
answers
36k
views
How to add password validation using regular expression in angularjs according to certain criterion?
I want to validate password entered by user for following criteria :
Password should be at least 8 characters long and should contain one number,one character and one special character.
For it I ...
1
vote
2
answers
590
views
looking for a regular expression to match specific decimal format in ng-pattern
i am looking for a regular expression to put in ng-pattern attribute of angular.
i am looking for an expression that satisfies only a specific decimal pattern i.e.
exactly one digit --> than a ...
5
votes
2
answers
3k
views
ng-pattern should not match supplied pattern
In ng-pattern we have the option of specifying that the field should match a specific pattern.
How can we specify that it should NOT match the specified pattern?
Example,
<input type="text" ng-...
4
votes
3
answers
8k
views
ng-pattern with regex having double quotes does not escape correctly
I have a ng-pattern validation for a regex of ^[^\./:*\?\"<>\|]{1}[^\/:*\?\"<>\|]{0,254}$ which basically tests the invalid chars in filepath and teh limit. but when i have the ng-pattern ...
1
vote
2
answers
1k
views
ng-pattern issue with input type number
I am facing one weird issue when trying to use ng-pattern with input type number.
<input type="number" name="input" min="0" max="1000" data-ng-model="input" ng-pattern="/^[0-9]*$/">
<div ...
1
vote
1
answer
639
views
ng-pattern not working inside directive
I'm trying to wrap an <input> in a directive so that I can handle date validation and convert it from a string to an actual Date object and maintain the Date version in the original scope. This ...
-1
votes
1
answer
1k
views
ng-pattern not matching the correct regex
I am using a form to get user details. In my name input I want only alphabetic characters, spaces and apostrophe. So I created the form input like
<input placeholder="FULL NAME" type="text" ng-...