Answers.Body: <p>I am not sure if this answers your question, but if you do not have an added profile type to collect a mailing address, the CiviContribute form will automatically only provide a place to check or enter billing address only. If you add a profile type that collects their mailing address also, then CiviCRM will ask on the front-facing form via checkbox if the billing address is different. </p>
  
  <p>If you do not add a mailing address profile, CiviCRM will record the provided address as a billing address. If you do provide the mailing address profile, then CiviCRM will populate both fields according to what the user entered for mailing and billing.</p>
  
  <p>Also, without the added profile to collect a mailing address, the CiviCRM will automatically populate the billing address field with whatever address it knows from the contact record, which may have been entered on the back end or from when the user registered for an account on your website.</p>
  
  <p>When you set up the CiviContribute form on the back end, you will see a tab for "profiles" in which you can add or create a profile such as this.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-13T02:52:02.757Z
Answers.LastActivityDate: 2016-10-13T02:52:02.757Z
Answers.UserDisplayName: Christia
Body: <p>I'd like to know under what circumstances does CiviCRM automatically set an address's Location Type to "Billing", under what circumstances does it automatically set the "Is billing" checkbox for an address.</p>
  
  <p>For example, when completing a public-facing contribution form, or a webform, etc., how are these fields populated?</p>
  
  <p>(I've read <a href="https://civicrm.stackexchange.com/questions/8664/why-is-there-a-location-type-and-a-checkbox-for-billing-addresses">Why is there a Location Type AND a Checkbox for billing addresses?</a> which aims to explain the <em>purpose</em> of these fields, how they might be used and understood, and why you might manually set them one way or another, but this is slightly different, since I want to know how they're <em>automatically</em> set by CiviCRM.)</p>
  
Tags: <addresses><location-type><billingblock>
Title: How are "Billing" location and "Is billing address" automatically set by CiviCRM?
ThreadText: # How are "Billing" location and "Is billing address" automatically set by CiviCRM?
  
  (Asked by: username_0 on 2016-07-01)
  
  I'd like to know under what circumstances does CiviCRM automatically set an address's Location Type to "Billing", under what circumstances does it automatically set the "Is billing" checkbox for an address.
  
  For example, when completing a public-facing contribution form, or a webform, etc., how are these fields populated?
  
  (I've read [Why is there a Location Type AND a Checkbox for billing addresses?](https://civicrm.stackexchange.com/questions/8664/why-is-there-a-location-type-and-a-checkbox-for-billing-addresses) which aims to explain the *purpose* of these fields, how they might be used and understood, and why you might manually set them one way or another, but this is slightly different, since I want to know how they're *automatically* set by CiviCRM.)
  
  **Tags:** addresses, location-type, billingblock
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-13. Score: 1
  
  I am not sure if this answers your question, but if you do not have an added profile type to collect a mailing address, the CiviContribute form will automatically only provide a place to check or enter billing address only. If you add a profile type that collects their mailing address also, then CiviCRM will ask on the front-facing form via checkbox if the billing address is different.
  
  If you do not add a mailing address profile, CiviCRM will record the provided address as a billing address. If you do provide the mailing address profile, then CiviCRM will populate both fields according to what the user entered for mailing and billing.
  
  Also, without the added profile to collect a mailing address, the CiviCRM will automatically populate the billing address field with whatever address it knows from the contact record, which may have been entered on the back end or from when the user registered for an account on your website.
  
  When you set up the CiviContribute form on the back end, you will see a tab for "profiles" in which you can add or create a profile such as this.
  
  
  ---
  
  