I am dealing with a situation where I have multiple checkboxes in my form next to each field. The checkbox data will not be saved, but I need to determine if all checkboxes are selected before submitting the form. If they are all selected, I want to return true, otherwise false. The challenge is that I have a large number of fields in my form and I need to accomplish this in a dynamic way. Here is a snippet of my HTML code...
<div class="ui-g-12 ui-md-12">
<div class="ui-g-12 ui-md-11">
<span class="md-inputfield">
<input type="text" pInputText
formControlName="sequenceOfTotal">
<label>Sequence of Total(27)</label>
</span>
</div>
<div class="ui-g-12 ui-md-1">
<span class="md-inputfield">
<p-checkbox binary="true">
</p-checkbox>
</span>
</div>
</div>