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) »
  • How to Rearrange Address fields..anyone?
Pages: [1]

Author Topic: How to Rearrange Address fields..anyone?  (Read 1496 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
How to Rearrange Address fields..anyone?
October 30, 2008, 11:43:36 pm
Hi thanks for reading.  I have a manager that insists on the "Contact Edit" page that the State select should be between City and ZIP.  By default it appears below the Country select and she finds this disagreeable for some reason.   However, I cannot figure out how to make this change.

I have looked at changing the following .tpl files and do not see how to make this edit.  Maybe I have overlooked something, or maybe I should look somewhere else?

CRM/Contact/Form/Edit.tpl
CRM/Contact/Form/Address.tpl
CRM/Contact/Form/Location.tpl

See attached image.  How do I make this change?

Thank you.  Currently using 2.0.x w/ Drupal.

« Last Edit: November 01, 2008, 03:55:23 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to Rearrange Address fields..anyone?
November 03, 2008, 10:31:44 am
Is what I want to do here not possible?  5 days and no responses?  It seemed like an easy task until I couldn't find what I wanted in the .tpl files.  Any insight?

Thanks for any help!!!   ??? :)
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How to Rearrange Address fields..anyone?
November 03, 2008, 11:50:09 am
Not sure this change is workable or a good idea, since the State field is filtered based on the country that the user selects. However, if you are only offering "United States" - you could try changing things and see if it works. You'll need to modify CRM/Contact/Form/Edit.php - starting around line 519.
Protect your investment in CiviCRM by  becoming a Member!

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to Rearrange Address fields..anyone?
November 04, 2008, 11:35:10 am
Thank you for your response.  When I told the client about the situation, they elected to keep the form 'as-is' and this is primarily because they plan on adding other countries in the near future and in this case the state/province filtering comes in handy.

Much appreciated!   :)
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to Rearrange Address fields..anyone?

This forum was archived on 2017-11-26.