Duplicate entries

hi,
is there any way where we can check for duplicate entries on name field,
based first and last name?

Thanks in advance

It would have to be some sort of custom validation. You would accept their input in the form, then after submission, you could use the gform_validation or gform_field_validation filter to compare what they submitted to all previous submissions in the same form.

https://docs.gravityforms.com/gform_validation/
https://docs.gravityforms.com/gform_validation/

Those are the hooks to use. In your function, you can use the Gravity Forms API functions to pull entry data from previous submissions for your comparison:

This is supported by Gravity Forms Limit Submissions. Just setup a limit of 1 and designate the Name field (or any combination of inputs) as what the limit should be based on.

2 Likes

is there any way if i can check the entire form data if its being resubmitted again?

All core Gravity Forms fields are supported (except File Uploads) so sure, you could check each field.

1 Like

how do we do that? check all fields before submission?

If you take a look at the screenshot above, you’ll see the Rules section. Here you would just add a rule for each field on your form. Then Limit Submissions would handle checking if all the fields have duplicate values.

@user5c87f3f431f988.1

GravityView 2.5 added duplicating entry functionality to the front-end of a site.

GravityView 2.6 supports duplicating entries from the admin: https://docs.gravityview.co/article/675-duplicate-gravity-forms-entry