Skip to main content
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=&...
Ishmeet Singh's user avatar
1 vote
0 answers
48 views

ng-pattern does not work when pattern set dynamically in ng-repeat

I have some sets of patterns in my controller. I am trying to set this pattern dynamically for ng-pattern using ng-repeat. Pattern example : $scope.codePattern = (function () { var regexp = /^([a-zA-...
user14118739's user avatar
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 ...
Lenny Kamande's user avatar
0 votes
1 answer
423 views

AngularJS - ng-pattern on a form failing for certain special symbols such as the dollar sign

I am writing an app with AngularJS 1.5. I am trying to write a feature where the user can verify their password in the app and I am using ng-messages to try to validate the form. My from has 2 fields:...
user1261710's user avatar
  • 2,647
0 votes
1 answer
106 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('...
user avatar
0 votes
0 answers
77 views

Ng-Pattern performance issue with multiline regex

I have performance problems with ng-pattern on a textarea input. I have a Regex expression to simply check if the code contains script, image or iframe tag. If I paste a script with multiple lines, ...
Nicolas Gehlert's user avatar
0 votes
0 answers
189 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-...
Darren Eccles's user avatar
1 vote
1 answer
47 views

spicy angularjs regex

I've been working on a regex problem for angularJs ng-pattern which needs: Cannot be blanks A minimum of 1 character and a maximum of 32 characters Spaces ONLY are not allowed Acceptable special ...
user1070111's user avatar
0 votes
1 answer
718 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 ...
Sathish's user avatar
  • 169
1 vote
2 answers
728 views

ng-pattern to check amount should be of 1 to 3 digit with 2 decimal value (999.99)?

I am working on a transaction form. In the form, there is a field name Amount. I am using this ng-pattern i.e. ng-pattern="/^[1-9][0-9]{0,2}(?:,?[0-9]{3}){0,3}(?:\.[0-9]{1,2})?$/" which allow only ...
Nishant's user avatar
  • 127
1 vote
1 answer
726 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 ...
Bonnard's user avatar
  • 379
0 votes
1 answer
911 views

How to debug ng-pattern

I'm working on custom form validation for an Angular application using ng-pattern. In my form I have: <form name="jobsForm" id="jobs-form"> <div jobs-form jobs="jobs"> <...
Sara Fuerst's user avatar
  • 6,138
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> <...
monir tuhin's user avatar
0 votes
3 answers
932 views

How to edit input style by using ng-pattern

I made a small js here I also add the code to the Stack overflow snippet but for some reason it doesn't work to me var myApp = angular.module('myApp',[]); function MyCtrl($scope) { $...
Robdll's user avatar
  • 6,283
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 ...
MABC's user avatar
  • 605

15 30 50 per page