Prevent Entire Record

Prevent Entire Record

I want to prevent entire record data from being repeated in case it is repeated as it is.

for example if we have form has 3 fields and one user enter a record as below:

field_1 = 15
field_2 = 14
field_3 = 13

and he try to add a new record with same fields input

field_1 = 15
field_2 = 14
field_3 = 13

 submit must be cancel