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 to prefill an entry field with 'help' text that clears when selected

  1. Hiya,

    My form is one box for an email address and the submit button. I would like the email box to be pre filled with text like 'Your email (never shared!)' or something like that, which automatically clears when the user clicks in the field to start typing.

    Is this do-able in Settings, or are there any user-created plugins that help?

    Many thanks!
    Owen

    Posted 7 years ago on Saturday January 26, 2013 | Permalink
  2. That functionality is called placeholder text and is a feature of HTML 5, but not currently included in Gravity Forms. You can use this 3rd party plugin to achieve what you want:

    http://wordpress.org/extend/plugins/gravity-forms-placeholders/

    Or you can follow this older tutorial:
    http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    Posted 7 years ago on Wednesday January 30, 2013 | Permalink
  3. Out of curiosity, why is this not included in Gravity? Seems simple enough since it only adds 1 line of code to the input field.

    Posted 7 years ago on Thursday February 28, 2013 | Permalink
  4. It's being considered for a future release of Gravity Forms. Thank you for your interest.

    Posted 7 years ago on Monday March 4, 2013 | Permalink
  5. Hi Chris, not to sound rude or anything, but what is there to consider? The HTML5 Placeholder text should be widely enough supported in modern browsers plus it degrades gracefully in that non supported browsers just don't get the placeholder.

    In my opinion this should really be done, as there is a HTML5 Form option in the settings it could be optional. Been waiting quite some months for this feature and don't see any progress.

    Again, this is just my opinion and you guys are doing a great job, just missing this feature or possibility.. thanks

    p.s. The mentioned Plugin doesn't seem to work with the latest version...

    Posted 7 years ago on Tuesday March 19, 2013 | Permalink
  6. I can't speak for the development team, but I know that feature has been requested in the past and is being considered. When there are third party add-ons available, and other solutions posted, we don't always incorporate the functionality into the core Gravity Forms.

    Thank you for your opinion.

    There are two plugins I know of:
    http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/
    http://wordpress.org/extend/plugins/gravity-forms-placeholders/

    Additionally, there is this solution we have posted previously:
    http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    This user posted something recently:
    http://www.warrenchandler.com/2012/10/11/gravity-forms-three-handy-tips/

    Google has some solutions too:
    https://www.google.com/search?hl=en&q=gravity+forms+placeholder

    Posted 7 years ago on Thursday March 21, 2013 | Permalink