Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

I have an input tag <div class="form-group" ng-form name="patientLinkingForm"> <input type=&...
Ishmeet Singh's user avatar
0 votes
0 answers
71 views

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 ...
Lenny Kamande's user avatar
0 votes
1 answer
108 views

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('...
user avatar
0 votes
0 answers
191 views

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-...
Darren Eccles's user avatar
0 votes
1 answer
719 views

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 ...
Sathish's user avatar
  • 169
1 vote
1 answer
727 views

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 ...
Bonnard's user avatar
  • 379
0 votes
3 answers
3k views

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> <...
monir tuhin's user avatar
0 votes
2 answers
2k views

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 ...
MABC's user avatar
  • 605
0 votes
1 answer
833 views

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 ...
Mohamed Sahir's user avatar
-1 votes
2 answers
400 views

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 ...
Himanshu Shekhar's user avatar
-2 votes
1 answer
24 views

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 ...
user4895544's user avatar
0 votes
2 answers
103 views

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 ...
Edd's user avatar
  • 1,988
-1 votes
1 answer
74 views

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, ...
D. Gal's user avatar
  • 339
2 votes
1 answer
2k views

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 ...
Adleron's user avatar
  • 83
4 votes
2 answers
10k views

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="...
sheravanan's user avatar
0 votes
2 answers
4k views

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 ...
Jonathan Anctil's user avatar
0 votes
0 answers
201 views

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 ...
The Vanilla Thrilla's user avatar
0 votes
0 answers
39 views

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 ...
user avatar
12 votes
4 answers
36k views

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 ...
PHPLover's user avatar
  • 13k
1 vote
2 answers
590 views

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 ...
Raas Masood's user avatar
  • 1,605
5 votes
2 answers
3k views

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-...
Tarun Dugar's user avatar
  • 8,993
4 votes
3 answers
8k views

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 ...
looneytunes's user avatar
1 vote
2 answers
1k views

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 ...
TheKingPinMirza's user avatar
1 vote
1 answer
639 views

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 ...
Cineris's user avatar
  • 581
-1 votes
1 answer
1k views

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-...
Muhammad Raihan Muhaimin's user avatar