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.

CSS class for placeholder

  1. Tobe
    Member

    I checked the documentation, and there are CSS classes for columns and inline. But what CSS class to add on the advanced tab of any field where I want a placeholder? (To have the labels placed inside the field forms so that they show the text info until the user clicks inside the field)

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  2. David Peralty

    There are two add-ons that might help you with that:
    http://wordpress.org/extend/plugins/gravity-forms-placeholders/
    http://wordpress.org/extend/plugins/gravity-forms-auto-placeholders/

    These are created by third parties and should hopefully give you what you want.

    Posted 11 years ago on Monday April 1, 2013 | Permalink
  3. Tobe
    Member

    Hi David,

    I prefer not to use third party free plugins. Chris responded to a similar question about placeholder CSS classes:

    "You can add the CSS class on the advanced tab of any field where you want a placeholder, or for the whole form, on the form settings page, as described in the plugin."

    read: http://www.gravityhelp.com/forums/topic/easy-way-to-setup-a-form-structure-like-this

    But I checked the documentation and can't find any CSS classes for that. Do I miss something here?

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink
  4. When I suggested adding the class to the fields or the form, that was dependent on using the free 3rd party placeholder plugin from here: http://wordpress.org/extend/plugins/gravity-forms-placeholders/

    Dexx did not choose to use that plugin and used the auto placeholder plugin instead, because it sounds like he didn't know where to add the CSS class to use the plugin I linked to above. I was only explaining how to add that CSS class.

    You will have to use one of these free plugins, or you can use something like this: http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    Placeholder text is not a feature of Gravity Forms at this time.

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink