Contact 1 is an Individual subtype. Contact2 is an existing organization sub-type. Contact1 Shares address of Contact 2. On form submission a Relationship "Contact 1 is an Employee of Contact2" gets created even if no such relationship is set up.

Comments

pankaj01’s picture

Ok let me rephrase it.
Scenario: I have created a webform that uses 2 contacts. Contact1 is a subtype of Individual( Visitor). On each form submission a new Visitor is created.
Contact2 is an Organization subtype. It is an existing organization. I want to use the Contact2's Organization address as a second address (of type 'work') of Contact1.
Issue: Even though I am not creating any kind of relationship, I see that on from submission a relationship of type "Employee of " gets created between 'visitor' and organization.

petednz’s picture

check this directly on civicrm - i think that creating an individual who shares an Orgs address creates the relationship - so maybe nothing to do with the webform

colemanw’s picture

Status: Active » Closed (works as designed)

Correct. This is core civicrm functionality.

pankaj01’s picture