Answers.Body: <p>There is an extension <a href="https://github.com/fuzionnz/nz.co.fuzion.emailprofile" rel="nofollow noreferrer">here</a> which includes email fields in profiles on the contribution page. The standard billing email address field is removed when an email field is found in profile.</p>
  
  <p>If the contact is logged in - this field defaults to the 'Billing' email, if set, otherwise it is set to 'primary'.</p>
  
  <p>When the contribution is confirmed the email address is saved/updated on the contact as the 'Billing' email</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-06T20:50:48.590Z
Answers.LastActivityDate: 2018-04-06T20:50:48.590Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>One solution is to create your own custom module/plugin to do what is required. Steps:</p>
  
  <ol>
  <li>Use hook_civicrm_postProcess hook for the target contribution page, you can give the contribution id or name in if condition.</li>
  <li>Use civicrm contact create api call to edit email address type.</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-03T05:00:39.457Z
Answers.Text: thx. we have created an extension but waiting on QA by client before releasing
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-06T20:51:29.770Z
Answers.Text: pls have a look at the extension published in another answer on this ticket
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-02T18:09:16.217Z
Answers.LastActivityDate: 2018-01-02T18:09:16.217Z
Answers.UserDisplayName: Hassan Farooq
Body: <p>Only just stumbled on this after realising that a client was correct. They set the Profile to use Email (home) but the Contribution page overrides this and makes the email be Billing.</p>
  
  <p>This ticket seems closest to the <a href="https://issues.civicrm.org/jira/browse/CRM-16339">issue</a> though it is initially about the idea of being able to collect additional email addresses.</p>
  
  <p>If John K is correct then current approach is</p>
  
  <ul>
  <li><p>If the contact is logged in this field defaults to the 'Billing' email, if set, otherwise the 'primary' email</p></li>
  <li><p>When the contribution is confirmed the email address is saved/updated on the contact as the 'Billing' email</p></li>
  </ul>
  
  <p>(ie: If the field was prefilled from the primary 'home' email, the contact would now have two email addresses the same for 'home' and 'billing')</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-18T22:07:12.610Z
Comments.Text: We are looking at getting an alternative to this out as an Extension
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-06T08:00:42.510Z
Comments.Text: Have you made any progress with this extension? We have a client with the same issue.
Comments.UserDisplayName: Heather O.
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-07T03:31:46.667Z
Comments.Text: Heather - can you pm me. peter.davis@fuzion.co.nz
Comments.UserDisplayName: petednz - fuzion
Tags: <civicontribute><location-type>
Title: How can I prevent Contribution Pages forcing the email to be of type Billing
ThreadText: # How can I prevent Contribution Pages forcing the email to be of type Billing
  
  (Asked by: username_0 on 2017-01-12)
  
  Only just stumbled on this after realising that a client was correct. They set the Profile to use Email (home) but the Contribution page overrides this and makes the email be Billing.
  
  This ticket seems closest to the [issue](https://issues.civicrm.org/jira/browse/CRM-16339) though it is initially about the idea of being able to collect additional email addresses.
  
  If John K is correct then current approach is
  
  * If the contact is logged in this field defaults to the 'Billing' email, if set, otherwise the 'primary' email
  * When the contribution is confirmed the email address is saved/updated on the contact as the 'Billing' email
  
  (ie: If the field was prefilled from the primary 'home' email, the contact would now have two email addresses the same for 'home' and 'billing')
  
  **Tags:** civicontribute, location-type
  
  > **Comments:**
  > **username_0**: We are looking at getting an alternative to this out as an Extension  
  > **username_1**: Have you made any progress with this extension? We have a client with the same issue.  
  > **username_0**: username_1 - can you pm me. peter.davis@username_0.co.nz  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2018-04-06. Score: 1
  
  There is an extension [here](https://github.com/fuzionnz/nz.co.username_0.emailprofile) which includes email fields in profiles on the contribution page. The standard billing email address field is removed when an email field is found in profile.
  
  If the contact is logged in - this field defaults to the 'Billing' email, if set, otherwise it is set to 'primary'.
  
  When the contribution is confirmed the email address is saved/updated on the contact as the 'Billing' email
  
  
  ---
  
  ### Answer by username_2 on 2018-01-02. Score: 1
  
  One solution is to create your own custom module/plugin to do what is required. Steps:
  
  1. Use hook\_civicrm\_postProcess hook for the target contribution page, you can give the contribution id or name in if condition.
  2. Use civicrm contact create api call to edit email address type.
  
  > **Comments:**
  > **username_0**: thx. we have created an extension but waiting on QA by client before releasing  
  > **username_0**: pls have a look at the extension published in another answer on this ticket  
  
  ---
  
  