Hi everyone,
I Have to check for duplicate roll number and first name in a customized SharePoint form. I have to check duplicate for roll number and first name column of SharePoint list 'Student Info' and display message "value Already Exist" in form. I was able to come up with the logic of this task :

Same logic i have applied to Roll number and it is working for Roll number when I am entering a duplicate roll number but new name which doesn't exist in the list but when Iam entering duplicate first name and new roll number then it is giving "Value Already Exist" message for both the fields which shouldn't happen. Also, the "Value Already exist" should come after clicking submit.can any one help me out with this one.