I have a form which consists of an array of input fields.
Is there any way I could verify the inputs in every row and check if they have at least one unique value in any one field so that there will be none identical rows?
For example, 2nd row is allowed to only have 3 out of 4 fields with exact values similar to those in 1st row, at max.
<form>
<div>
<table>
<tr v-for="(item, i) of items" :key="i">
<td>
<input type="date" :id="'date-' + i">
</td>
<td>
<input type="text" :id="'project_id-' + i">
</td>
<td>
<input type="text" :id="'hours-' + i">
</td>
<td>
<input type="text" :id="'description-' + i">
</td>
</tr>
<tr>
<td>
<button type="button" @click="itemCount++">Add Row</button>
</td>
</tr>
</table>
</div>
<div>
<button type="button" v-on:click="submit()">
</div>
</form>
I have came across a technique using distinctvalidation but uncertain of its practicality besides of the correct syntax and flow.