Answers.Body: <p>It would be a simple extension to write, and would likely make a small group of users quite happy. </p>
  
  <p>Just fyi, it's currently possible to add a custom field to addresses, so you could create a contact reference field limited to the contacts who host as a custom address field. It would appear on the event location form if you do. Then you will likely want to write jQuery so that when a contact is selected in that field on the Manage Event Location tab the values in its work address fields get copied into the event location fields. The use of the event location fields would be the same as before. However, you would need to suppress that contact reference field from appearing anywhere else. It's a bit quick and dirty. A more elegant approach would be to use jQuery to insert a contact reference field just into that form, with same copying done on select of a contact.</p>
  
  <p>In case this helps, we have made it so you can use the supplementary address 1 and 2 fields on event location, and have values displayed in the event location option list. In our case this meant that different conference room for monthly lunches in the same hotel could be selected. In yours, you might be able to use those fields to display info like parking instructions, etc. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T03:55:09.753Z
Answers.LastActivityDate: 2015-04-01T03:55:09.753Z
Answers.UserDisplayName: Joe Murray
Answers.Body: <p>It would require a change to the core function CRM_Event_BAO_Event::getLocationEvent().  Right now, it only pulls addresses that are tied to existing events.  Theoretically, the schema supports addresses that are tied to contacts also being tied to events, but there's no way to set the contact ID on an event address or vice-versa.</p>
  
  <p>In one sense, it would be nice to have an extension or core feature that is an address manager for merging addresses.  (In civicrm.org, there got to be two locations for the trainings we have at AGH Strategies: one on Colorado Avenue and one on Colorado Ave. NW.  There's no way to merge them with each other, let alone with the record for the actual company.)  Alternatively, it would be nice to have a third option besides "Create new location" and "Use existing location"--a "use contact's location" option would be basically what you need.</p>
  
  <p>However, it does introduce one potential question: what if the contact moves?  If the AGH Strategies office moves to 14th Street, let's say, we'd edit our contact record at civicrm.org and the same address ID would now read 14th St. NW.  If those event records were tied to our address rather than a separate one, they'd suddenly say that trainings from last year were held on 14th Street rather than Colorado Avenue.  Now, the location of past events isn't usually a concern, but it might be one for some folks, maybe to demonstrate all the places they've had events or to research areas that are underserved.  Tying event locations to contacts would, at the very least, introduce this problem.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-31T23:38:52.650Z
Answers.LastActivityDate: 2015-03-31T23:38:52.650Z
Answers.UserDisplayName: Andie Hunt
Body: <p>Is there any extension or any other way to use regular contacts as event locations? This has been asked on several occasions in the forum, and the response has been "well, at least you can re-use event locations."</p>
  
  <p>We have a membership organization of local businesses, and a monthly meeting that rotates among the board members' offices. So, being able to look up a member's office and select it as the venue would be far easier than re-entering the data. Moreover, the event location fields are limited— email address but no website?— whereas the contact records have custom fields for things like parking, security, and public transit information associated with the location.</p>
  
  <p>By tying an eveny to a venue rather than a location, I wonder if it might be easier to record hosting an event as an activity for the organization as well.</p>
  
  <p>Since event locations are stored in the <code>civicrm.address</code> table already (though they are inaccessible from any other part of the system), I wonder how difficult it would be to refactor events to use contact addresses. But leaving that aside, is there at least a workaround? I suppose we could use a contact reference custom field, but that would require a good deal of customization to display more than the contact name, I would think.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-13T04:17:31.933Z
Comments.Text: Did anything come from this?
Comments.UserDisplayName: Gemma - Fuzion
Tags: <civievent><addresses><contact-reference>
Title: Using contacts as event locations
ThreadText: # Using contacts as event locations
  
  (Asked by: username_0 on 2015-03-31)
  
  Is there any extension or any other way to use regular contacts as event locations? This has been asked on several occasions in the forum, and the response has been "well, at least you can re-use event locations."
  
  We have a membership organization of local businesses, and a monthly meeting that rotates among the board members' offices. So, being able to look up a member's office and select it as the venue would be far easier than re-entering the data. Moreover, the event location fields are limited— email address but no website?— whereas the contact records have custom fields for things like parking, security, and public transit information associated with the location.
  
  By tying an eveny to a venue rather than a location, I wonder if it might be easier to record hosting an event as an activity for the organization as well.
  
  Since event locations are stored in the `civicrm.address` table already (though they are inaccessible from any other part of the system), I wonder how difficult it would be to refactor events to use contact addresses. But leaving that aside, is there at least a workaround? I suppose we could use a contact reference custom field, but that would require a good deal of customization to display more than the contact name, I would think.
  
  **Tags:** civievent, addresses, contact-reference
  
  > **Comments:**
  > **username_1**: Did anything come from this?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2015-03-31. Score: 6 | Accepted answer
  
  It would require a change to the core function CRM\_Event\_BAO\_Event::getLocationEvent(). Right now, it only pulls addresses that are tied to existing events. Theoretically, the schema supports addresses that are tied to contacts also being tied to events, but there's no way to set the contact ID on an event address or vice-versa.
  
  In one sense, it would be nice to have an extension or core feature that is an address manager for merging addresses. (In civicrm.org, there got to be two locations for the trainings we have at AGH Strategies: one on Colorado Avenue and one on Colorado Ave. NW. There's no way to merge them with each other, let alone with the record for the actual company.) Alternatively, it would be nice to have a third option besides "Create new location" and "Use existing location"--a "use contact's location" option would be basically what you need.
  
  However, it does introduce one potential question: what if the contact moves? If the AGH Strategies office moves to 14th Street, let's say, we'd edit our contact record at civicrm.org and the same address ID would now read 14th St. NW. If those event records were tied to our address rather than a separate one, they'd suddenly say that trainings from last year were held on 14th Street rather than Colorado Avenue. Now, the location of past events isn't usually a concern, but it might be one for some folks, maybe to demonstrate all the places they've had events or to research areas that are underserved. Tying event locations to contacts would, at the very least, introduce this problem.
  
  
  ---
  
  ### Answer by username_2 on 2015-04-01. Score: 4
  
  It would be a simple extension to write, and would likely make a small group of users quite happy.
  
  Just fyi, it's currently possible to add a custom field to addresses, so you could create a contact reference field limited to the contacts who host as a custom address field. It would appear on the event location form if you do. Then you will likely want to write jQuery so that when a contact is selected in that field on the Manage Event Location tab the values in its work address fields get copied into the event location fields. The use of the event location fields would be the same as before. However, you would need to suppress that contact reference field from appearing anywhere else. It's a bit quick and dirty. A more elegant approach would be to use jQuery to insert a contact reference field just into that form, with same copying done on select of a contact.
  
  In case this helps, we have made it so you can use the supplementary address 1 and 2 fields on event location, and have values displayed in the event location option list. In our case this meant that different conference room for monthly lunches in the same hotel could be selected. In yours, you might be able to use those fields to display info like parking instructions, etc.
  
  
  ---
  
  