PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

German address field order?

  1. highend
    Member

    Hi,

    will v1.5 include the option to display the address fields in the correct order for german users?

    E.g.:

    1line, two fields: Name | Surname
    2line, two fields: Street | Number
    3line, two fields: PLZ | City

    I've read that it's possible to hide fields from the admin menu and that it's also possible to use .css to move a field to a different line but those "hacks" destroy the tab index order...

    Tia,
    Highend

    Posted 13 years ago on Friday February 4, 2011 | Permalink
  2. Name isn't part of the Address field, so that won't be part of the 1.5 release. Name is a separate field.

    This is the first time this has been requested. We haven't had any German users request any enhancements to the Address field so this definitely won't be in the 1.5 release because it's the first we have heard of it.

    But we can look at enhancing this in a future release. We plan on focusing on enhancing and refining existing functionality as one of the goals of this year.

    Posted 13 years ago on Friday February 4, 2011 | Permalink
  3. I´m from Norway and I would love for a way to reorder the address fields. We use Zip before City, so it´s a bit confusing for people when they are so used to entering in one order. In result we have many entries mixed up with zip in city and vice versa.

    Is there something I could do as a temporary fix?

    Posted 13 years ago on Friday February 11, 2011 | Permalink
  4. The only thing you could do is hack the core code. There isn't a hook to do this, so it can't be done any other way than hacking the core plugin files themselves.

    Posted 13 years ago on Friday February 11, 2011 | Permalink
  5. bobbio2009
    Member

    Hi! I would love a way to reorder the address fields too.
    I am from Germany.
    Thank you in advance for this, possibly in the next update?
    Best Regards!

    Posted 13 years ago on Thursday February 24, 2011 | Permalink
  6. Same Here Zip before City is the general usage in Switzerland to!
    Hacking the core code is not such a great option!

    For now I would recommend a CSS bases solution as It won't break when you update...
    BR Marcel

    Posted 13 years ago on Friday March 11, 2011 | Permalink
  7. We are going to add a filter in the final 1.5 release that will allow you to tell Gravity Forms to display the zip code before the city.

    Unfortunately with the large number of variations we can't add a custom address field type for every region so we handle more specialized use via hooks/filters you can use.

    It's actually possible to create your own custom address type and add it to the address type drop down selector via existing hooks. But we will implement a simple hook where you can simply tell the address field to swap the position of the zip and city fields. This will be in the final 1.5 release.

    Posted 13 years ago on Friday March 11, 2011 | Permalink
  8. Hi Carl

    Wow, thanks for the great effort and reply!
    Looking forward to this!

    Regards Marcel

    Posted 13 years ago on Friday March 11, 2011 | Permalink
  9. isuk
    Member

    Finally bought Gravity Forms :)

    Carl,
    how exactly do I swap zip and city on a per form basis now (how does the necessary hook look like and which file has to be modified to use it)?

    And how about adding a tutorial to the documentation how a custom address type can be build and included in the address type drop down selector? Would be quite usefull imho.

    Regards,
    Ulf

    Posted 13 years ago on Friday April 22, 2011 | Permalink
  10. Here is documentation for the hook that would be used to swap the position of the city and zip fields in the Address field:

    http://www.gravityhelp.com/documentation/page/Gform_address_display_format

    Posted 13 years ago on Friday April 22, 2011 | Permalink
  11. isuk
    Member

    Thanks Carl,

    will use that now.

    Posted 13 years ago on Friday April 22, 2011 | Permalink
  12. isaoyoshikoshi
    Member

    Hi, Carl.

    I've inserted the filter code into our themes' function.php file,
    but nothing's happen (address fields positions are not changed).
    I'm expecting that address fields order is changed in our form.
    What's wrong?

    inserted code:

    add_filter("gform_address_display_format", "address_format");
    function address_format($format){
        return "zip_before_city";
    }

    Thanks,
    Isao

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  13. We see the issue and will be correcting this hook in the next release.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  14. isaoyoshikoshi
    Member

    Hi, Carl.

    I've upgraded GF to 1.5.2 and tested same filter, but nothing happens.
    Is something wrong with me?

    Isao

    Posted 13 years ago on Thursday May 5, 2011 | Permalink
  15. It looks like it was corrected in the entry details and notifications, but not the form display itself. We will correct this. I apologize for the oversight on this one.

    Posted 13 years ago on Thursday May 5, 2011 | Permalink
  16. isaoyoshikoshi
    Member

    Thanks for your quick reply.
    I will wait for the fix.

    Using this filter,
    I want to try to reorder address fields
    for Japanese usage, it must be
    Postal code, State (with Japanese provinces list),
    City, Address1, Address2.
    Could you give me an advise to quick hack?
    It can be ugly and not perfect.

    Posted 13 years ago on Friday May 6, 2011 | Permalink
  17. I also require this filter/hack/option.

    Posted 13 years ago on Tuesday June 7, 2011 | Permalink
  18. Any update on this?

    I'm currently using DOM manipulation with jQuery to fix this.

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  19. Wow! New release an hour after I posted and it is working just perfect :-)

    Excellent work!

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  20. Yes, this was fully implemented in the new 1.5.2.8 release.

    Here is documentation for the hook that would be used to swap the position of the city and zip fields in the Address field:

    http://www.gravityhelp.com/documentation/page/Gform_address_display_format

    Posted 13 years ago on Thursday June 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.