Address format for dutch users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scdzaak
    Member
    • Aug 2014
    • 51

    Address format for dutch users

    Is is possible to change the address layout in the viewer from: City - Postcode to Postcode - City I think this is also in france, belgium and germany.
  • yuri
    Member
    • Mar 2014
    • 8669

    #2
    Hi

    Yes but manually. The easiest way: client/res/templates/fields/address/*.tpl
    Edit those files.

    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • scdzaak
      Member
      • Aug 2014
      • 51

      #3
      Hi Yuri,

      Fixed, your answer worked !
      Thanks

      Comment

      • ecosystm
        Junior Member
        • Oct 2015
        • 24

        #4
        This works for the edit form, but does not present the view in a correct way. I get the impression that this code displays the view of the address... But what to change to get it postalcode, city, state?

        if (cityValue || stateValue || postalCodeValue) {
        if (html != '') {
        html += '<br>'
        }
        if (cityValue) {
        html += cityValue;
        }
        if (stateValue) {
        if (cityValue) {
        html += ', ';
        }
        html += stateValue;
        }
        if (postalCodeValue) {
        if (cityValue || stateValue) {
        html += ' ';
        }
        html += postalCodeValue;
        }
        }

        Comment

        • yuri
          Member
          • Mar 2014
          • 8669

          #5
          Yes. This code composes address for detail view.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • dafnie
            Senior Member
            • Dec 2015
            • 140

            #6
            And the view file is here /client/src/views/fields/address.js

            Comment

            Working...