I am facing an issue with my ng-repeater, where each row contains a checkbox and 3 text fields. I want to ensure that the user can only select the checkbox if they have entered data in all 3 text fields. If the user tries to select the checkbox without entering any data, I need to show a warning message.
I believe I need to check if the ng-models for the text fields are null or undefined before allowing the checkbox to be selected, but I'm not sure how to implement this in HTML.
This is a snippet of my HTML code:
<div ng-repeat="o in objects">
<input type="checkbox" class="myClass" ng-click="doSomething(argument)>
....
....
<input ng-model="model1">
<input ng-model="model2">
<input ng-model="model3">
EDIT: After some research, I found a solution on this Stack Overflow post about AngularJS form custom validation.