CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Add additional field to New Location form
Pages: [1]

Author Topic: Add additional field to New Location form  (Read 2774 times)

clay

  • Guest
Add additional field to New Location form
February 05, 2009, 11:23:49 pm
Hi,

I am trying to add a new field 'Center' to the new location form.

For example: When adding a new location for an event, I want a drop down of marketing centers the event belongs to.

Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add additional field to New Location form
February 06, 2009, 12:19:27 am
Quote
I am trying to add a new field 'Center' to the new location form.
Can't you use Address Name for this purpose ?

Quote
For example: When adding a new location for an event, I want a drop down of marketing centers the event belongs to.

We have added reuse of location feature in v2.2. You can check it on http://sandbox.civicrm.org

Kurund
Found this reply helpful? Support CiviCRM

dwilliu1

  • Guest
Re: Add additional field to New Location form
February 06, 2009, 12:27:24 am
I think what clay might be asking is similar to one I asked earlier.
The ability to define locations for different types of events, and have those defined locations appear as the options automatically when defining a new event and selecting the location.

Is that what you're asking?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add additional field to New Location form
February 06, 2009, 12:34:33 am
Quote
The ability to define locations for different types of events, and have those defined locations appear as the options automatically when defining a new event and selecting the location.

check http://issues.civicrm.org/jira/browse/CRM-1971

Kurund
Found this reply helpful? Support CiviCRM

clay

  • Guest
Re: Add additional field to New Location form
February 06, 2009, 12:37:48 am
When you are adding a new event and click 'new location'

This is the form you get:


Address
Street Address
Street number, street name, apartment/unit/suite - OR P.O. box
Addt'l Address 1
Supplemental address info, e.g. c/o, department name, building name, etc.
City
Zip / Postal Code
Country
State/Province
Latitude, Longitude ,
Email (preferred) 
Phone (preferred)

I want to add a field to that form. How can I do that? I'm not opposed to simply adding the field in the database through phpmyadmin if someone can tell me which file I need to edit to add the field to the form.
« Last Edit: February 06, 2009, 12:41:43 am by clay »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add additional field to New Location form
February 06, 2009, 01:48:20 am
Go to New Event: http://sandbox.civicrm.org/civicrm/event/add?action=add&reset=1

Fill the form click "Continue" then you will get

Event Location (step 2 of 5)

Event Location and Contact Information
Use this form to configure the location and optional contact information for the event. This information will be displayed on the Event Information page. It will also be included in online registration pages and confirmation emails if these features are enabled.

( ) Choose Location Create new location
( )Reuse existing location

HTH

Kurund
Found this reply helpful? Support CiviCRM

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add additional field to New Location form
February 06, 2009, 06:38:09 am
Quote from: clay on February 06, 2009, 12:37:48 am
I want to add a field to that form. How can I do that? I'm not opposed to simply adding the field in the database through phpmyadmin if someone can tell me which file I need to edit to add the field to the form.

this will require changes to the schema, php and templates. If interested in this, contact us on IRC

a easier alternative might be to display and collect center information as part of the event information and extend the event via custom fields. i.e. make center a custom field in a custom group that extends event

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

marqpdx

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
Re: Add additional field to New Location form
February 06, 2009, 11:46:03 am
hello,

regarding the comment below, i just checked my newly upgraded CiviCRM 2.2beta, and on the event location setup, there is no choice to either choose to create a new location or reuse an old one. please see attached screenshot.

do i need to rebuild something or turn on some admin setting?

please advise!
thanks much!!
m


Quote from: Kurund Jalmi on February 06, 2009, 01:48:20 am
Go to New Event: http://sandbox.civicrm.org/civicrm/event/add?action=add&reset=1

Fill the form click "Continue" then you will get

Event Location (step 2 of 5)

Event Location and Contact Information
Use this form to configure the location and optional contact information for the event. This information will be displayed on the Event Information page. It will also be included in online registration pages and confirmation emails if these features are enabled.

( ) Choose Location Create new location
( )Reuse existing location

HTH

Kurund

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add additional field to New Location form
February 06, 2009, 02:06:17 pm
Currently you don't get this option in Edit mode. Hence i have reopened original issue.

http://issues.civicrm.org/jira/browse/CRM-1971

Kurund
Found this reply helpful? Support CiviCRM

marqpdx

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
Re: Add additional field to New Location form
February 06, 2009, 02:09:52 pm
Thanks kurund,

i don't see this option either in New Event mode.

are others able to use this feature in 2.2beta??

thanks,
m

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Add additional field to New Location form
February 06, 2009, 02:19:54 pm

yes, i tested this on sandbox. You might want to check it there and ensure it works in "new" mode

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

marqpdx

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
Re: Add additional field to New Location form
February 06, 2009, 02:26:27 pm
I just tested in Sandbox, and it has a much different Event Location page than my installation. It shows the new Location choice feature.

I installed CiviCRM 2.2.beta1 this morning, and there is no location choice. I deleted all old files before upgrading, but I will double check my files one more time.

thanks
m



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Add additional field to New Location form

This forum was archived on 2017-11-26.