Answers.Body: <p>I think you will have a significantly easier time just reordering the fields with a little jQuery in a custom version of the template you referenced above.</p>
  
  <p>For completeness... You can see the sequence function here: <a href="https://github.com/civicrm/civicrm-core/blob/5dde2c09c10513a22464e8c4abcb6b4ca17fc1cb/CRM/Utils/Address.php#L288" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/5dde2c09c10513a22464e8c4abcb6b4ca17fc1cb/CRM/Utils/Address.php#L288</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-17T23:31:54.333Z
Answers.LastActivityDate: 2018-04-17T23:31:54.333Z
Answers.UserDisplayName: Eli Lisseck
Answers.Body: <p>[This doesn't answer your question, but may be useful anyway]</p>
  
  <p>You can change the order of address fields used for <em>displaying</em> the address at <code>Administer &gt; Localization &gt; Address Settings</code> and change the <code>Address Display</code> section.</p>
  
  <p>If you want to change which address fields are available for <em>editing</em> then see the <code>Address Editing</code> section of the same page.  But that does not let you determine the order of fields when editing.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-18T09:45:34.310Z
Answers.LastActivityDate: 2018-04-18T09:45:34.310Z
Answers.UserDisplayName: Aidan
Body: <p>How can I change the order of the address' fields on the page where I can edit the conatct's details? </p>
  
  <p>Now I see the fields city, than postal code, than country, but I'd like to have postal code first, than city, and than country. </p>
  
  <p>In the Address.tpl file is only so much: </p>
  
  <pre><code>{foreach item=addressElement from=$addressSequence}
       {include file=CRM/Contact/Form/Edit/Address/$addressElement.tpl}
  </code></pre>
  
  <p>How can I edit <code>$addressSequence</code>? </p>
  
  <p>Thanks.</p>
  
Tags: <addresses>
Title: Address field order on Contact's "edit" page
ThreadText: # Address field order on Contact's "edit" page
  
  (Asked by: username_0 on 2018-04-17)
  
  How can I change the order of the address' fields on the page where I can edit the conatct's details? 
  Now I see the fields city, than postal code, than country, but I'd like to have postal code first, than city, and than country. 
  In the Address.tpl file is only so much: 
  {foreach item=addressElement from=$addressSequence}
       {include file=CRM/Contact/Form/Edit/Address/$addressElement.tpl}
  
  How can I edit $addressSequence? 
  Thanks.
  
  **Tags:** addresses
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-04-17. Score: 1
  
  I think you will have a significantly easier time just reordering the fields with a little jQuery in a custom version of the template you referenced above.
  
  For completeness... You can see the sequence function here: <https://github.com/civicrm/civicrm-core/blob/5dde2c09c10513a22464e8c4abcb6b4ca17fc1cb/CRM/Utils/Address.php#L288>
  
  
  ---
  
  ### Answer by username_2 on 2018-04-18. Score: 0
  
  [This doesn't answer your question, but may be useful anyway]
  
  You can change the order of address fields used for *displaying* the address at `Administer > Localization > Address Settings` and change the `Address Display` section.
  
  If you want to change which address fields are available for *editing* then see the `Address Editing` section of the same page. But that does not let you determine the order of fields when editing.
  
  
  ---
  
  