Answers.Body: <p>It's not currently possible to create a relationship on a CiviCRM profile form similar to the Employer one when using WordPress or Joomla. </p>
  
  <p>However, if you create an auto-reference field you can use that to create a link between a participant and another contact. </p>
  
  <p>You can create the field on all contacts, or a contact subtype that covers all those filling in the event registration for trainingeven, or potentially registrants or just the registrants for that event. My guess is that a registrant auto-reference field is less likely to be convenient or what you want. </p>
  
  <p>Don't forget that 1) the auto-reference contacts can be limited to a particular group of contacts, and 2) there are security issues in exposing contact data when using contact reference fields on public forms.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-12T15:20:47.917Z
Answers.Text: That is what I was afraid the answer was.  Thanks.
Answers.UserDisplayName: G H
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T17:51:10.510Z
Answers.LastActivityDate: 2016-05-10T17:51:10.510Z
Answers.UserDisplayName: Joe Murray
Answers.Body: <p>This sounds like it might be a job for CiviRules, which lets you create "if this, then that" type rules with triggers, conditions and actions. It's powerful, but depending on exactly what's required it may need to be extended further. It's also necessary to be careful with configuring it!</p>
  
  <p>(We also have an internal unreleased extension called Keep History that takes custom fields from a contact, and copies them into a relationship. But that was created for a legacy situation where a many-one kind of relationship became many-many so it was necessary to create relationships instead of using contact reference custom fields.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-12T15:21:52.860Z
Answers.Text: This is true.  Unfortunately, CiviRules still needs some work with the CiviCRM 4.7.x branch.
Answers.UserDisplayName: G H
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T17:47:56.077Z
Answers.LastActivityDate: 2016-05-10T17:47:56.077Z
Answers.UserDisplayName: DaveFF
Body: <p>I love the way the "Employee of" relationship can be created simply by adding the "Current Employer" field to a profile.  Is there a corollary for other relationships?  I need to be able to track if an event registrant is connected to another external partnering organization.  However, I don't retain the membership information for the partnering organizations.</p>
  
  <p>Quick example:  Create a "Church Member of" relationship to an Organization/Church while signing up for a training.</p>
  
  <p>(If I missed this in the docs, oops!, please forgive me.)  It seems that most are using Drupal WebForms, which is, um, difficult? on WordPress.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-15T18:39:31.943Z
Comments.Text: I really would like to do the same thing described in the original ticket. I wonder if there has been any update on this issue in the last 5+ years? Perhaps there is an extension that now exists which enables this functionality in CiviCRM with WordPress?
Comments.UserDisplayName: kales
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-16T19:40:08.997Z
Comments.Text: I believe this can be achieved via Caldera Forms integration currently (though CF is on its way out to be replaced by something else with this capability).
Comments.UserDisplayName: petednz - fuzion
Tags: <civievent><wordpress><profile><relationships><registration>
Title: Creating a relationship when filling in a Profile
ThreadText: # Creating a relationship when filling in a Profile
  
  (Asked by: username_0 on 2016-05-03)
  
  I love the way the "Employee of" relationship can be created simply by adding the "Current Employer" field to a profile. Is there a corollary for other relationships? I need to be able to track if an event registrant is connected to another external partnering organization. However, I don't retain the membership information for the partnering organizations.
  
  Quick example: Create a "Church Member of" relationship to an Organization/Church while signing up for a training.
  
  (If I missed this in the docs, oops!, please forgive me.) It seems that most are using Drupal WebForms, which is, um, difficult? on WordPress.
  
  **Tags:** civievent, wordpress, profile, relationships, registration
  
  > **Comments:**
  > **username_1**: I really would like to do the same thing described in the original ticket. I wonder if there has been any update on this issue in the last 5+ years? Perhaps there is an extension that now exists which enables this functionality in CiviCRM with WordPress?  
  > **username_2**: I believe this can be achieved via Caldera Forms integration currently (though CF is on its way out to be replaced by something else with this capability).  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2016-05-10. Score: 2 | Accepted answer
  
  It's not currently possible to create a relationship on a CiviCRM profile form similar to the Employer one when using WordPress or Joomla.
  
  However, if you create an auto-reference field you can use that to create a link between a participant and another contact.
  
  You can create the field on all contacts, or a contact subtype that covers all those filling in the event registration for trainingeven, or potentially registrants or just the registrants for that event. My guess is that a registrant auto-reference field is less likely to be convenient or what you want.
  
  Don't forget that 1) the auto-reference contacts can be limited to a particular group of contacts, and 2) there are security issues in exposing contact data when using contact reference fields on public forms.
  
  > **Comments:**
  > **username_0**: That is what I was afraid the answer was.  Thanks.  
  
  ---
  
  ### Answer by username_4 on 2016-05-10. Score: 1
  
  This sounds like it might be a job for CiviRules, which lets you create "if this, then that" type rules with triggers, conditions and actions. It's powerful, but depending on exactly what's required it may need to be extended further. It's also necessary to be careful with configuring it!
  
  (We also have an internal unreleased extension called Keep History that takes custom fields from a contact, and copies them into a relationship. But that was created for a legacy situation where a many-one kind of relationship became many-many so it was necessary to create relationships instead of using contact reference custom fields.)
  
  > **Comments:**
  > **username_0**: This is true.  Unfortunately, CiviRules still needs some work with the CiviCRM 4.7.x branch.  
  
  ---
  
  