Answers.Body: <p>Yes.  Create a form and add an Individual, an Organization and a Relationship.</p>
  <p>On the Relationship tab, use the Values section:</p>
  <ul>
  <li>click 'Add value' and select 'Contact A'</li>
  <li>click in the search box and choose 'Individual1' in the pop-up</li>
  <li>click 'Add value' and select 'Contact B'</li>
  <li>click in the search box and choose 'Organization1' in the pop-up</li>
  <li>click 'Add value' and select 'Relationship Type'</li>
  <li>in the pop-up, select 'Key contact of'</li>
  </ul>
  <p><a href="https://i.sstatic.net/AfAac.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/AfAac.png" alt="enter image description here" /></a></p>
  <p>This works on <a href="https://dmaster.demo.civicrm.org" rel="nofollow noreferrer">https://dmaster.demo.civicrm.org</a> (5.56.alpha1) but may not on older versions.</p>
  <p>== Edit ==</p>
  <p>If your version supports relationships they should show on the pop-up when you hit '+' as here:</p>
  <p><a href="https://i.sstatic.net/CBuov.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CBuov.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-17T14:21:17.873Z
Answers.Text: I'm using 5.49 & so maybe that's the problem as I don't see any relationship tabs in Form Builder.  Thanks for the fast reply - I'll try with a later release
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-17T14:40:41.593Z
Answers.Text: OK, added a screenshot to show where relationships will show up if they are supported.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-17T15:09:38.477Z
Answers.Text: This isn't in 5.49 but is in 5.53 - hard to keep up!
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-17T10:58:29.877Z
Answers.LastActivityDate: 2022-10-17T14:39:48.540Z
Answers.LastEditDate: 2022-10-17T14:39:48.540Z
Answers.UserDisplayName: Aidan
Body: <p>Using Form Builder I want to add an individual and an organisation and so the individual would have the relationship 'contact for' the organisation. I can't see a way of doing that - is it possible?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-10-04T16:07:33.813Z
Comments.Text: Thanks for your answers (and the question first!) I'm not able to set any relationships. I'm saving the parameters for Contact A, B and the type of relationships and it doesnt save. (when I go to another tab and go back to the relationship tab...) Then on the form page, when I send the data I get the message: > Mandatory values missing from Api4 Relationship::save: contact_id_a,
  > contact_id_b
Comments.UserDisplayName: Fredatipik
Tags: <formbuilder>
Title: Does Form Builder handle relationships?
ThreadText: # Does Form Builder handle relationships?
  
  (Asked by: username_0 on 2022-10-17)
  
  Using Form Builder I want to add an individual and an organisation and so the individual would have the relationship 'contact for' the organisation. I can't see a way of doing that - is it possible?
  
  **Tags:** formbuilder
  
  > **Comments:**
  > **username_1**: Thanks for your answers (and the question first!) I'm not able to set any relationships. I'm saving the parameters for Contact A, B and the type of relationships and it doesnt save. (when I go to another tab and go back to the relationship tab...) Then on the form page, when I send the data I get the message: > Mandatory values missing from Api4 Relationship::save: contact_id_a, > contact_id_b  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-10-17. Score: 4 | Accepted answer
  
  Yes. Create a form and add an Individual, an Organization and a Relationship.
  
  On the Relationship tab, use the Values section:
  
  * click 'Add value' and select 'Contact A'
  * click in the search box and choose 'Individual1' in the pop-up
  * click 'Add value' and select 'Contact B'
  * click in the search box and choose 'Organization1' in the pop-up
  * click 'Add value' and select 'Relationship Type'
  * in the pop-up, select 'Key contact of'
  
  [![enter image description here](https://i.sstatic.net/AfAac.png)](https://i.sstatic.net/AfAac.png)
  
  This works on <https://dmaster.demo.civicrm.org> (5.56.alpha1) but may not on older versions.
  
  == Edit ==
  
  If your version supports relationships they should show on the pop-up when you hit '+' as here:
  
  [![enter image description here](https://i.sstatic.net/CBuov.png)](https://i.sstatic.net/CBuov.png)
  
  > **Comments:**
  > **username_0**: I'm using 5.49 & so maybe that's the problem as I don't see any relationship tabs in Form Builder.  Thanks for the fast reply - I'll try with a later release  
  > **username_2**: OK, added a screenshot to show where relationships will show up if they are supported.  
  > **username_0**: This isn't in 5.49 but is in 5.53 - hard to keep up!  
  
  ---
  
  