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.

Label Placement - In Field?

  1. Is it possible to customize / hack the code to have the Field Labels Show up INSIDE of the fields? I have a sidebar form that I want to create. It needs to be as compact as possible. Can I change the CSS/Javascripts so that everytime "right aligned" is selected it actually aligns inside fo the field?

    My guess is that "everything is possible" - but I wanted to check the feasibility before I pay a subcontracted developer to do this for me.

    Here is an example: http://www.viget.com/inspire/a-better-jquery-in-field-label-plugin/

    Posted 13 years ago on Monday December 12, 2011 | Permalink
  2. Hey there, you would hide the existing field labels with a CSS rule, then you can use this method to add the placeholder text inside the inputs.

    http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    Posted 13 years ago on Tuesday December 13, 2011 | Permalink
  3. Gotcha! Makes sense, I'm not a developer but I think I can get it figured out on my own. Thanks! I never noticed the "default" value option!

    Posted 13 years ago on Tuesday December 13, 2011 | Permalink
  4. Right on! I'll leave this thread open so let me know if you run into any issues. Also, I'd be interested in seeing your success as well - have fun!

    Posted 13 years ago on Tuesday December 13, 2011 | Permalink
  5. Hey there,

    I have it working on 1 website: http://lifestylesentertainment.com/

    BUT

    Can't get it to work on a different website: http://dev.djwebsitedesign.com/liquid/weddings/

    I keep checking over and over again and I am pretty certain everything is identical. Do you have any ideas on what could be causing the 2nd instance not to work? Is it a conflict of scripts?

    Posted 13 years ago on Thursday December 22, 2011 | Permalink
  6. It most likely is a conflict, this could be coming in via a plugin or the theme itself. I would try testing for that as laid out here to see if you can pinpoint it:

    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Let me know what you come up with there.

    Posted 13 years ago on Thursday December 22, 2011 | Permalink
  7. Thanks for all of your help. I de-bugged, isolated to the theme. Then all I had to do was move the script up a few lines in the header...and it worked. Maybe something with the ordering. But I don't really know b/c I am not a developer! Thanks again.

    Posted 13 years ago on Thursday December 22, 2011 | Permalink
  8. Great, glad to help!

    Posted 13 years ago on Thursday December 22, 2011 | Permalink

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