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.

Text inside input field

  1. elianab
    Member

    I want to have the email field pre-populated with something like "Enter your email here." I want it inside the field, not as a field label. Once the person starts writing their email, the pre-populated text will go away. Can I do that?

    Posted 13 years ago on Friday July 30, 2010 | Permalink
  2. This isn't a built in feature. It would require a customization. You can read about how to do this here:

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

    Posted 13 years ago on Friday July 30, 2010 | Permalink
  3. Just what I need. But how do you generate the text inside the field?

    Best,
    M

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  4. You use the "default value" option to add the text to the input.

    screenshot: http://bit.ly/nCrDmu

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  5. Ahh. Thanks - I was using advanced fields, and there it's not an option. Any reason not to have that?

    M

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  6. Sure. The advanced fields are for names, email addresses, etc. Why would you have default values in there for those?

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  7. It's a layout thing, so I wouldn't need to clutter the form:

    http://rumlab.dk/_morten/form_layout.JPG

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  8. With the advanced fields it's perfect that I only have a field name for each section, while if I used simple fields I will have too CSS all the field names blank. Or is there a better way?

    Thanks for superfast response!

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  9. Currently Gravity Forms doesn't support inline labels like that. It's not a built in feature. So the only way to do this is going to be via a customization either with jQuery or jQuery CSS.

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink
  10. Continued here

    Posted 12 years ago on Tuesday August 23, 2011 | Permalink

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