Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

I want maxDate to be selectable as today at most, (old days should be clickable, but not tomorrow) the day between i select as maxDay and minDay should be 365 days at most, it cant be selected more ...
user avatar
0 votes
1 answer
64 views

I have an input field inside an ng-repeat, which gets a dynamic name tag, like so: <div ng-repeat="a in b track by $index"> <div show-errors > <label for="...
Eric Mitjans's user avatar
  • 2,179
0 votes
1 answer
460 views

Pretty sure that my title is misleading... Oh well. So basically, I'm trying to create a game and I have a bunch of arrays with names like ItemsInG5Array, ItemsInB2Array where G5 and B2 are nodes of ...
Ivan Stasyuk's user avatar
2 votes
0 answers
600 views

I've to use AngularJS 1.7 for a project where I have a form and have to validate an input field to be required, to have a particular pattern and to have unique values. For this I'm doing this : ...
Pranab's user avatar
  • 229
0 votes
3 answers
671 views

This is my Html Part <form name="userForm" ng-submit="submitForm()" novalidate> <!-- NAME --> <div class="form-group" ng-class="{ '...
user avatar
0 votes
1 answer
63 views

i.e, I have four text boxes if I enter a value in any text box out of all text box, it should be allowed to submit otherwise throw an error,"Value is Required", It is possible using angularjs ...
Sandip Lakum's user avatar
1 vote
0 answers
547 views

I have a situation where the ng-model value may sometimes not be present in the ng-options list of a Select dropdown (ID of a user that is no longer with the company saved in a record, for example). ...
cheluto2's user avatar
2 votes
2 answers
123 views

I am new to AngularJS and try to implement form validation in "myApp" app. I wrote the code below. The {{result}} should output "true"/"false". But it didn't work. <script src="https://ajax....
RickyY9's user avatar
  • 45
-1 votes
3 answers
447 views

i'm working on a school project. My project has some forms that need to be validated. Login and register form validation work well but the other form used to upload item is not validated. I have tried ...
Jay's user avatar
  • 11
0 votes
1 answer
680 views

I am trying to add a dropdown list with "Others" option. If user select "Others", Others (Please specify) input box will become Mandatory. How should I validate this case? Right now I added Javascirpt ...
Tun Tun's user avatar
  • 41
0 votes
4 answers
4k views

I am trying to create a form that, if you do not fill out any of the fields, will show an alert message if you hit submit. I am trying to work with angular validation to make this happen; however, it ...
user2990's user avatar
0 votes
3 answers
1k views

I have a multistep form. I have ng-show which depends whether or not the input[type="text"] is empty. Now, it works for one section of the form, but doesn't work for another section of the form. <...
relentless-coder's user avatar
0 votes
0 answers
48 views

I am using Angular js, in which i have a textbox and collection of checkbox. I want to check if atleast one checkbox is checked when the submit button is clicked. Below is the existing code: <form ...
venkat14's user avatar
  • 623
1 vote
0 answers
597 views

I have a AngularJs form which contains textbox,textarea,dropdown,checkbox, date, time controls, ng-repeat textbox and textarea controls. I want to validate these controls only on submit button click ...
venkat14's user avatar
  • 623
2 votes
2 answers
4k views

I have a required <select> field: <select name="service_id" class="Sitedropdown" style="width: 220px;" ng-model="ServiceID" ng-options="service.ServiceID as service....
enkryptor's user avatar
  • 1,693
0 votes
1 answer
1k views

I have created a plnkr to describe my problem: Link to plnkr Problem description: I have a number field, the value from which is written to the model. First I implemented this feature like the first ...
omalyutin's user avatar
  • 454
0 votes
1 answer
112 views

<div class="form-group"> <input type="text" name="Name" data-ng-model="panNumber" required> <p data-ng-show="loginForm.Name.$error.required && (loginForm.Name.$touched ...
shreyansh's user avatar
  • 1,687
4 votes
2 answers
4k views

I have a form inside a div with ng-if condition. Initially form is closed. On click a button, form is displayed. But on submitting form, I'm getting Cannot read property '$valid' of undefined error. ...
Akshay Vaghasiya's user avatar
1 vote
2 answers
599 views

I have a form by some input. and some time I have another form by some input into this form. when I have not internal form, my parent form is valid, but when I have internal in original form and ...
masoud noursaid's user avatar
3 votes
1 answer
2k views

I have Custom input component with validation with ngMessages,FormController and ng-required: <div class="col-sm-9 col-xs-12"> <input id="{{$ctrl.fieldName}}" name="{{$ctrl....
Radek Anuszewski's user avatar
3 votes
0 answers
553 views

I have an application in which dynamically check boxes and radio buttons get generated based on the data sent from the server. The number of check box/radio button displayed can increase up to 20 (in ...
Shashank HS's user avatar
0 votes
1 answer
99 views

I have the following code which I'm trying to validate using AngularJS: <div ng-form="transWizard" novalidate> <div style="word-wrap:break-word; padding-top:4px; padding-left:14px"> ...
Dee J.'s user avatar
  • 363
1 vote
1 answer
2k views

I am new to angular, I was struck to trigger a form validation with the button outside the form. I have two buttons one inside form, which works and one outside, I want the outside button to do the ...
Coeus's user avatar
  • 2,635
4 votes
2 answers
1k views

name="number-{{$index+1}}" working in ng-repeat at the same time myform.number-{{$index+1}}.$invalid does not working for the form Demo: http://plnkr.co/edit/Z3EmpHu8w2iZcZko9dJv?p=preview var ...
Mo.'s user avatar
  • 27.6k
0 votes
1 answer
952 views

In the registration form i have single field for both email and mobile number but it doesn't working properly. <form name="regForm" > <md-input-container flex md-no-float> <...
Hemanth kumar H J's user avatar