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.

How can I move the description to be above the field?

  1. How do I make a field description appear above the field instead of below.

    I'm trying to follow the directions here:

    http://forum.gravityhelp.com/topic/how-to-create-single-checkbox-that-is-required-for-confirming-tc-for-example#post-2207

    I took the css code from that thread and pasted it into forms.css like this:
    http://www.pastie.org/1226089

    Now how do I find my Title field's field id?

    Posted 13 years ago on Saturday October 16, 2010 | Permalink
  2. You might just try this instead.. put this in your theme header file and it should move all of the descriptions for you instead of having to do it manually.

    <script type="text/javascript">
    jQuery(document).ready(function() {
    
    	jQuery('.gfield_description').each(function(i,e){
    	    fielddesc = jQuery('<div>').append(jQuery(e).clone()).remove().html();
    	    jQuery(e).siblings('label.gfield_label').after(fielddesc);
    	    jQuery(e).remove();
    	});
    
    });
    </script>

    Also, you're fields id is found in the markup. View the source, locate the field you want and you'll see the id in line with the other attributes.

    Posted 13 years ago on Sunday October 17, 2010 | Permalink
  3. Hi Kevin,

    I too would like to move the descriptions above the input fields. I found this post and put your script (seen here) into the head area of my theme. I'm using Thesis and put it in the Document Head>Additional Scripts box. But I see no changes as I edit the form nor do I see any changes when I preview the form.

    I'm using WordPress 3.1 with Gravity 1.5.RC4.2 (I needed the page break feature). Any thoughts how to make this work? Thanks.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink
  4. @pcgs51

    Can you post a URL to your form page so I can take a look at it?

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink
  5. It will take a few minutes. I work in MAMP so I have to upload my site first. Stay tuned. Thanks.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink
  6. Hi Kevin,

    Here the URL to my form. It is a multi page form.

    Ideally I would like the descriptions (gfield_description) to appear above the input areas. But I'd like the section descriptions (gsection_description) to stay where they are which is below the h2 (gsection_title) headings.

    But if they all have to move I can live with it. Thanks.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink
  7. You're adding your script to the header section of the page and the jQuery library doesn't get loaded until the end of the page. You need to put your script in the markup AFTER the jQuery library gets loaded then it should work for you.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink
  8. Thanks Kevin! It didn't show up in MAMP but it did when I repeated the same procedure on my remote site.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink
  9. Cool. Thanks for the update.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink