Body: <p>We run regular free online events that anyone can attend, and use the standard CiviEvent registration process. We collect basic info, including each attendee's employer organisation.</p>
  <p>When new contacts register for an event we need to allocate their organisation to a specific sub-contact types (our CiviCRM has 'supplier' and 'member' organisation sub-contact types).</p>
  <p>Is there a way to allocate the employer organisation of new contacts to different sub-contact type when they register for an event?</p>
  <p>We are using Drupal 7 and CiviCRM 5.40.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-03T12:31:23.030Z
Comments.Text: What determines which subtype is applicable?  Maybe CiviRules?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-04T07:17:14.460Z
Comments.Text: Ah that should work. Thanks Aiden. I can add a mandatory select custom field to the event registration profile to indicate the type of attendee (Member, Supplier). CiviRules can use that field as the condition to set the contact subtype. I will test and then add an answer.
Comments.UserDisplayName: Davy Ivins
Tags: <civievent><drupal-7><sub-types>
Title: How to allocate organisation contact sub-type on event registration?
ThreadText: # How to allocate organisation contact sub-type on event registration?
  
  (Asked by: username_0 on 2021-11-03)
  
  We run regular free online events that anyone can attend, and use the standard CiviEvent registration process. We collect basic info, including each attendee's employer organisation.
  
  When new contacts register for an event we need to allocate their organisation to a specific sub-contact types (our CiviCRM has 'supplier' and 'member' organisation sub-contact types).
  
  Is there a way to allocate the employer organisation of new contacts to different sub-contact type when they register for an event?
  
  We are using Drupal 7 and CiviCRM 5.40.
  
  **Tags:** civievent, drupal-7, sub-types
  
  > **Comments:**
  > **username_1**: What determines which subtype is applicable?  Maybe CiviRules?  
  > **username_0**: Ah that should work. Thanks Aiden. I can add a mandatory select custom field to the event registration profile to indicate the type of attendee (Member, Supplier). CiviRules can use that field as the condition to set the contact subtype. I will test and then add an answer.  
  
  ---
  
  ## 0 answers
  
  