Answers.Body: <p>So I just went through and created a custom profile. I added three fields drawn from individual:
  First Name
  Last Name
  Current Employer</p>
  <p>I entered a sample with a local business and the resulting contact had the appropriate relationship.</p>
  <p>Is this what you were trying to accomplish?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-23T15:31:03.677Z
Answers.Text: It is thank you! I'm not quite sure what you mean by sample? Could you explain - thank you!
Answers.UserDisplayName: user12708
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-23T15:48:29.570Z
Answers.Text: Sorry, what I meant was that I went to my own CiviCRM and I created a profile (as a sample for your issue) and I added three fields. When you add a field, it asks what form to draw the field from. In all three, I selected individual as the form and I chose first name, last name and Current Employer.
  Employer created the relationship as expected.
Answers.UserDisplayName: Karl Tatgenhorst
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-23T15:58:53.917Z
Answers.Text: I see - yes that's worked for me. My issue is how to create a relationship that isn't on the form. For example if I want to say an MP is a member of X party do you know of a way of doing that?
Answers.UserDisplayName: user12708
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-23T16:00:53.107Z
Answers.Text: Speculation here, but I'll give you something to try.
  The fields are drawn from existing forms, so add a custom field to contact doing what you want "party membership" 
  That field should be an option after that when you go to your custom profile creation/edit.
Answers.UserDisplayName: Karl Tatgenhorst
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-23T19:50:22.103Z
Answers.Text: "Current employer" is unusual in that it is available as a field for a profile. this isn't an option for other relationships. folk usually would do this in WP via Caldera Forms I think. Other options "an auto-reference field you can use that to create a link between a participant and another contact", or CiviRules (ref: https://civicrm.stackexchange.com/questions/11600/creating-a-relationship-when-filling-in-a-profile)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-23T15:04:57.790Z
Answers.LastActivityDate: 2021-08-23T15:04:57.790Z
Answers.UserDisplayName: Karl Tatgenhorst
Body: <p>I am creating profiles so that people in the organisation can input contacts easily. I can create a form that has all the individuals information that I need (name etc.) but I am struggling to work out how I can add relationships to other contacts (individuals and organisations) from this form.</p>
  <p>Is this something that is possible?</p>
  <p>When I try to create a field that links to an organisation it comes up with an error button and says it is invalid because the profile is for an individual. It won't let me create a form for multiple types of contacts.</p>
  <p>On Word press and civie 5.39.0.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-23T15:04:32.263Z
Comments.Text: Can you add which CMS are you using and Civi version?
Comments.UserDisplayName: Pradeep Nayak
Tags: <contacts><custom-fields><profile><relationships><forms>
Title: Is there a way to add relationships in a custom profile?
ThreadText: # Is there a way to add relationships in a custom profile?
  
  (Asked by: username_0 on 2021-08-23)
  
  I am creating profiles so that people in the organisation can input contacts easily. I can create a form that has all the individuals information that I need (name etc.) but I am struggling to work out how I can add relationships to other contacts (individuals and organisations) from this form.
  
  Is this something that is possible?
  
  When I try to create a field that links to an organisation it comes up with an error button and says it is invalid because the profile is for an individual. It won't let me create a form for multiple types of contacts.
  
  On Word press and civie 5.39.0.
  
  **Tags:** contacts, custom-fields, profile, relationships, forms
  
  > **Comments:**
  > **username_1**: Can you add which CMS are you using and Civi version?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-08-23. Score: 1
  
  So I just went through and created a custom profile. I added three fields drawn from individual:
  First Name
  Last Name
  Current Employer
  
  I entered a sample with a local business and the resulting contact had the appropriate relationship.
  
  Is this what you were trying to accomplish?
  
  > **Comments:**
  > **username_0**: It is thank you! I'm not quite sure what you mean by sample? Could you explain - thank you!  
  > **username_2**: Sorry, what I meant was that I went to my own CiviCRM and I created a profile (as a sample for your issue) and I added three fields. When you add a field, it asks what form to draw the field from. In all three, I selected individual as the form and I chose first name, last name and Current Employer. Employer created the relationship as expected.  
  > **username_0**: I see - yes that's worked for me. My issue is how to create a relationship that isn't on the form. For example if I want to say an MP is a member of X party do you know of a way of doing that?  
  > **username_2**: Speculation here, but I'll give you something to try. The fields are drawn from existing forms, so add a custom field to contact doing what you want "party membership"  That field should be an option after that when you go to your custom profile creation/edit.  
  > **username_3**: "Current employer" is unusual in that it is available as a field for a profile. this isn't an option for other relationships. folk usually would do this in WP via Caldera Forms I think. Other options "an auto-reference field you can use that to create a link between a participant and another contact", or CiviRules (ref: https://civicrm.stackexchange.com/questions/11600/creating-a-relationship-when-filling-in-a-profile)  
  
  ---
  
  