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 clear a text field when selected

  1. I have a text field that says enter your ZIP on the form field as the default value.
    I would like to when you click the form field to type in your zip that the text is cleared.
    Is that possible with Gravity forms? Also What would this me called?

    Thanks for your help!
    -J

    Posted 11 years ago on Monday June 17, 2013 | Permalink
  2. Richard Vav
    Administrator

    This is called a placeholder and is something that was introduced in HTML5, currently the easiest way to do this is by using a placeholder plugin, of which there are two in the WordPress plugin repository

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

    Regards,
    Richard

    Posted 11 years ago on Monday June 17, 2013 | Permalink
  3. circus
    Member

    gravity forms placeholders is just not working for me.

    have added it, added the class name, nothing.

    Am I missing something?

    Posted 11 years ago on Tuesday June 18, 2013 | Permalink
  4. Richard Vav
    Administrator

    @circus can you post a link to a page containing the form in question

    Posted 11 years ago on Tuesday June 18, 2013 | Permalink
  5. circus
    Member

    http://176.32.230.12/goldinthedaysofsummer.com/

    Posted 11 years ago on Tuesday June 18, 2013 | Permalink
  6. Richard Vav
    Administrator

    Check the javascript console, there are a number of errors which appear to be theme related being reported that are probably blocking the script from running. Looking at the source code you are also including jQuery twice once in the header and once in the footer, although the footer file is currently producing a 404 error. it is generally a bad idea to include scripts multiple times.

    Posted 11 years ago on Tuesday June 18, 2013 | Permalink