"
Choose one of the following Documents
<p ng-if="chooseAwardDocForm.transcript.$error.required
&& chooseAwardDocForm.bachelors.$error.required
&& chooseAwardDocForm.masters.$error.required">Select one of the documents below:</p>
<div class="form-group">
<input
id="transcript"
type="checkbox"
name="transcript"
ng-model="transcript"
required="transcript && !bachelors && !masters">
<label for="transcript">Transcript</label>
</div>
<br/><br/>
<div class="form-group">
<input
id="bachelors"
type="checkbox"
name="bachelors"
ng-model="bachelors"
required="!transcript && bachelors && !masters">
<label for="bachelors">Bachelors Degree Completed year: 1999</label>
</div>
<br/><br/>
<div class="form-group">
<input
id="masters"
type="checkbox"
name="masters"
ng-model="masters"
required="!transcript && !bachelors && masters">
<label for="masters">Masters Degree Completed year: 2001</label>
</div>
<br/><br/>
<div class="form-group">
<button type="submit"> Select Shipping Address</button>
</div>
"
I have to : 1. limit the user to select only 1 checkbox. 2. Be able to submit the form upon selection of alteast 1 checkbox. 3. Upon selection of more than 1 checkbox user should not be able to proceed to submit. Either make it disabled of alert with validation error.