I have a registry form in which you can specify your before and after names. However, if for example Niko is already taken, someone else can no longer take Niko as a first name, how can I solve this.
design-nk
(Niko Knez)
1
sacom
(Samuel Aguilera (Gravity Forms))
2
You would need to create a custom validation function using the gform_field_validation filter and the GFAPI class to search for previous entries using same value.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Duplicate entries | 7 | 6200 | February 12, 2020 | |
| Prevent duplicates in combination with other fields | 3 | 2755 | May 13, 2020 | |
| Validate unique form | 1 | 355 | November 30, 2022 | |
| Don’t allow duplicate entries on prepopulated fields | 3 | 1057 | October 1, 2020 | |
| Field Validation of previous entry | 3 | 402 | September 5, 2022 |