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.

Place sub labels on top in address field

  1. Hi, in almost everycase where I use the address field, the client asks me to move the sublabels above the input field (street, zip & city). I request that this be a feature in settings, that it is possible to move these labels above.
    In this case it doesn't make sense to have it below.
    https://www.evernote.com/shard/s3/sh/d63e5043-e0b4-4069-bf71-c749dd43c640/bd5aed517489698f3e101198e85a9430

    Here I have a jquery fix for it:

    jQuery(document).ready(function() {
    	jQuery('.ginput_complex label').each(function(i,e){
    		jQuery(this).parent().parent().parent().children('.gfield_label').remove();
    		var input = jQuery(this).siblings();
    		jQuery(input).before(jQuery(this));
    	});
    });

    Here is a screenshot of the fixed form - much cleaner:
    https://www.evernote.com/shard/s3/sh/f3900403-abbd-49d9-9ead-9003354e7239/7ad1e8cef7ba8886fa7df61d4c13afab

    Posted 11 years ago on Wednesday January 16, 2013 | Permalink
  2. Thank you for the suggestion and for providing your work around.

    Posted 11 years ago on Wednesday January 16, 2013 | Permalink