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.

Left-aligned, place description above fields (without PHP edits)

  1. When left alignment is selected for label placement, is it possible to modify the GF output to display descriptions above the field content instead of below--without editing the plugin files?

    Do you think that this jQuery trick from 3 yrs ago would still work? Is there a better jQuery class selector that would move all descriptions rather than having to hard code each?

    The draft form located at: http://remakelearning.org/directory/add-person/

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  2. This may not be the best, but it works:

    $(document).ready(function() {
    		$(".gfield_description").each(function(i) {
    			$(this).parent().prepend(this);
    		});
    	});

    However, it doesn't work when AJAX is turned for form paging. In that case, you need to also add:

    $(document).bind('gform_page_loaded', function(){
    		$(".gfield_description").each(function(i) {
    			$(this).parent().prepend(this);
    		});
    	});

    Is there a good way to combine these?

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  3. It looks like you have this working now. Did you still need help with this, or will one solution or the other help you with your form?

    Posted 11 years ago on Saturday February 23, 2013 | Permalink