0

Contact A, an individual, adds themselves and a linked organisation to CiviCRM using a webform.

If the organisation already exists in the database, I want to stop the form being submitted. I do not want the organisation to be duplicated or overwritten.

So using hook_webform_validate is it possible to test for a duplicate using a CiviCRM dedupe rule and if there is a match to throw a form error?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.