Answers.Body: <p>As Erikh said you cannot control the location type options through CiviCRM UI but you can restrict filter them using either <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/" rel="nofollow noreferrer">buildForm</a> or <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_fieldOptions/" rel="nofollow noreferrer">fieldOptions</a> hook.</p>
  
  <p>If you are using drupal than you can use webform with conditional filtering to filter the options. 
  HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-31T15:26:05.133Z
Answers.LastActivityDate: 2019-05-31T15:26:05.133Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>You can not restrict location types to specific contact types in core CiviCRM. 
  Obviously you can develop and extension that does this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-31T12:49:25.590Z
Answers.LastActivityDate: 2019-05-31T12:49:25.590Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>We have a contact subtype that needs to have location types of 'Postal' and 'Geographical'.</p>
  
  <p>I can edit the location types list to create those entries, but is it possible to restrict the available location types for only that contact subtype so none of the default locations (which we still want for individual contacts) are shown to users?</p>
  
  <p>It'd also be handy to restrict which location types appear in which fields as, obviously, a postal location for a phone doesn't make a lot of sense!</p>
  
Tags: <contacts><contact-types><location-type>
Title: Restrict location types available to specific contact subtype
ThreadText: # Restrict location types available to specific contact subtype
  
  (Asked by: username_0 on 2019-05-31)
  
  We have a contact subtype that needs to have location types of 'Postal' and 'Geographical'.
  
  I can edit the location types list to create those entries, but is it possible to restrict the available location types for only that contact subtype so none of the default locations (which we still want for individual contacts) are shown to users?
  
  It'd also be handy to restrict which location types appear in which fields as, obviously, a postal location for a phone doesn't make a lot of sense!
  
  **Tags:** contacts, contact-types, location-type
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-05-31. Score: 2 | Accepted answer
  
  As Erikh said you cannot control the location type options through CiviCRM UI but you can restrict filter them using either [buildForm](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm/) or [fieldOptions](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_fieldOptions/) hook.
  
  If you are using drupal than you can use webform with conditional filtering to filter the options.
  HTH
  
  Pradeep
  
  
  ---
  
  ### Answer by username_2 on 2019-05-31. Score: 2
  
  You can not restrict location types to specific contact types in core CiviCRM.
  Obviously you can develop and extension that does this.
  
  
  ---
  
  