I have a radio button and a text field. I want the text field to be required only if the radio button is ticked.
<label class="radio">
<input type="radio" value="createNewCollection" ng-model="selectedCollection" />
</label>
<input type="text" ng-model="collectionName" placeholder="Create new Collection"/>
So, collectionName is only required if createNewCollection is selected.