Body: <p>In formbuilder I have a very basic form, collecting first and last name of individuals.
  It's set as &quot;multiple&quot;, so that users can create up to two individuals (such as 2 parents / husband &amp; spouse)</p>
  <p><a href="https://i.sstatic.net/IJfyAWkS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/IJfyAWkS.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/7ou36TeK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7ou36TeK.png" alt="enter image description here" /></a></p>
  <p>Then I want to create a &quot;partner of&quot; relationship between them.</p>
  <p><a href="https://i.sstatic.net/O90MvnS1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/O90MvnS1.png" alt="Create relationship" /></a></p>
  <p>Result :
  A correct relationship is built between nom1 and nom2
  BUT : nom1 is related with himself, which is probably logical from a computer coding point of view, but not from a &quot;real life&quot; / use case point of view.</p>
  <p><a href="https://i.sstatic.net/82yPO9mT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/82yPO9mT.png" alt="enter image description here" /></a></p>
  <p>I believe the relation between nom1 and himself (in red on screenshot) should not be created</p>
  <p>What do you think ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-02T21:43:21.530Z
Comments.Text: correct these should not be created to themselves - but your screenshot suggests that you are setting both Contact A and Contact B as Individual 1 which I don't understand.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-02T21:54:36.670Z
Comments.Text: i had a quick go at setting one up at https://dmaster.demo.civicrm.org/civicrm/asdf 
   using Individual 1 and Individual 2 and Relationship and when it Submits it creates Contact A and Contact B with a relationship between them - and does not create one between A and A
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-03T09:06:53.153Z
Comments.Text: @petednz-fuzion  It works correctly with two separate individuals, but this is about the 'Repeat' feature. So 'Individual1' can represent multiple contacts.  See  https://dmaster.demo.civicrm.org/civicrm/asdf2  That's when the relationship with itself arises.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-03T09:11:28.653Z
Comments.Text: It's kinda logical that it creates those self-relationships, but unlikely to be what is wanted.  I'd suggest creating a request on lab.civicrm.org
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-03T16:31:08.243Z
Comments.Text: Thanks team. Yes, you correctly understood and reproduced the issue, which is logical but not what we should expect. I'll open an issue on  lab.civicrm.org
Comments.UserDisplayName: stackexchange user
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-03T20:23:18.417Z
Comments.Text: Ah right. yes hadn't tested what happens with 'multiple'. apologies
Comments.UserDisplayName: petednz - fuzion
Tags: <formbuilder>
Title: Formbuilder : individuals have relationship with themselves : bug or by design?
ThreadText: # Formbuilder : individuals have relationship with themselves : bug or by design?
  
  (Asked by: username_0 on 2024-07-02)
  
  In formbuilder I have a very basic form, collecting first and last name of individuals.
  It's set as "multiple", so that users can create up to two individuals (such as 2 parents / husband & spouse)
  
  [![enter image description here](https://i.sstatic.net/IJfyAWkS.png)](https://i.sstatic.net/IJfyAWkS.png)
  
  [![enter image description here](https://i.sstatic.net/7ou36TeK.png)](https://i.sstatic.net/7ou36TeK.png)
  
  Then I want to create a "partner of" relationship between them.
  
  [![Create relationship](https://i.sstatic.net/O90MvnS1.png)](https://i.sstatic.net/O90MvnS1.png)
  
  Result :
  A correct relationship is built between nom1 and nom2
  BUT : nom1 is related with himself, which is probably logical from a computer coding point of view, but not from a "real life" / use case point of view.
  
  [![enter image description here](https://i.sstatic.net/82yPO9mT.png)](https://i.sstatic.net/82yPO9mT.png)
  
  I believe the relation between nom1 and himself (in red on screenshot) should not be created
  
  What do you think ?
  
  **Tags:** formbuilder
  
  > **Comments:**
  > **username_1**: correct these should not be created to themselves - but your screenshot suggests that you are setting both Contact A and Contact B as Individual 1 which I don't understand.  
  > **username_1**: i had a quick go at setting one up at https://dmaster.demo.civicrm.org/civicrm/asdf   using Individual 1 and Individual 2 and Relationship and when it Submits it creates Contact A and Contact B with a relationship between them - and does not create one between A and A  
  > **username_2**: @username_1  It works correctly with two separate individuals, but this is about the 'Repeat' feature. So 'Individual1' can represent multiple contacts.  See  https://dmaster.demo.civicrm.org/civicrm/asdf2  That's when the relationship with itself arises.  
  > **username_2**: It's kinda logical that it creates those self-relationships, but unlikely to be what is wanted.  I'd suggest creating a request on lab.civicrm.org  
  > **username_0**: Thanks team. Yes, you correctly understood and reproduced the issue, which is logical but not what we should expect. I'll open an issue on  lab.civicrm.org  
  > **username_1**: Ah right. yes hadn't tested what happens with 'multiple'. apologies  
  
  ---
  
  ## 0 answers
  
  