Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just wrangling with a form - realise i need to set our Strict match to something other than our usual default to cope with the oddness of 'creating referees' - so wondered if you had thought about option of specifying which Matching Rule was to be used?
Awesome module btw ;-)
Comments
Comment #1
colemanw CreditAttribution: colemanw commentedI'm not sure how broad the need for this would be. Can you give more details on the use-case?
Comment #2
sonicthoughts CreditAttribution: sonicthoughts commentedI realize this is super old (but still open.)
I have an application with many contacts who are not authenticated in drupal. Often using webforms for some form of communication. At the backend, the user has to lookup the contact. Since we have matching built in, we can hide the existing contact field from the user, but show it to the email recipient of the request and include additional information. Since we have the contact id, we can perform click operations right from the email (like approve for a specific event or add to group.)
Here the matching rules are very important. In some cases, matching is helpful, others very important. Adding to a group (say teachers vs. student) is important, whereas allow to go to an event is less stringent. Since there are many operations that may require matching, would be useful to add matching rule as a setting on the matched contact or for the form as a whole.
I tried to track in down in the code, but got a little lost. I can see about patch or providing something more concrete if you can point me to the contact matching code.
Not critical, but I do see more opportunities open up here.
Comment #3
colemanw CreditAttribution: colemanw commentedShawn are you interested in being a co-maintainer of this project?
I think you'll find what you're looking for in wf_crm_webform_postprocess::findDuplicateContact
Comment #4
Stoob CreditAttribution: Stoob commentedWould you guys be willing to chip in a little $ to sponsor this? I would. Coleman, what's the estimate?
Comment #5
colemanw CreditAttribution: colemanw commentedAdding a per-contact, option of choosing a dedupe rule (with _none_ as an option if you want to always create a new contact) would be a 3-5 hr project. Core team rates are: https://civicrm.org/work-core-team
Comment #6
petednz CreditAttribution: petednz commentedI no longer have a scenario for this - but who knows when it might come up again - happy to cover an hour
Comment #8
colemanw CreditAttribution: colemanw commentedOk I've added the feature (took 3 hrs) and pushed it into the 4.x branch. Ought to appear in the -dev tarball shortly.
Stoob will you test it out and let me know?