I have a form input like so
<form name="groupForm" ng-submit="save()" ng-model="selectedItem" novalidate>
<input
required
ng-disabled="true"
name="searchParameter"
type="text"
ng-model="criteria.SearchParameter" />
<a href=""ng-click="save()" ng-class="{groupForm.$invalid}">Save All Changes</a>
When the value for the input is null or empty the form is invalid stating that this particular input is required. Is this expected or is there something I need to do?
requiredon the input? Therefore it is. Am I missing something?requiredanddisabledI would assume it is not then required?requiredanddisabledmeans it is required, but the user can't enter it.ng-required- you might be able to check if it's disabled which will let you decide whether it's required