[Resolved] Validate Unique Email for Custom Field Value

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by mattL-11 1 month ago.

Assigned support staff: Minesh.

Author
Posts
#1639987

Tell us what you are trying to do?
We have an email field which we don't want to allow any duplicates of the field value. IE only one post can be submitted with that email address.

Is there any documentation that you are following?
Couldn't find anything related to this.

Is there a similar example that we can see?

What is the link to your site?
corpo.mytalentplatform.com

#1640725

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that you are using Toolset form and with that form you want to check before post get saved that if the email is already registered it should ask user to add another email. If yes:
- You can use Toolset Form hook: cred_form_validate

Please check the following realted ticket where I shared the related solution.
=> https://toolset.com/forums/topic/need-to-validate-unique-values-in-post-field/#post-1201756

More info:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate

#1641113

My issue is resolved now. Thank you!