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.

HTML5 Placeholder not working

  1. Option ist activated with latest version of the Plugin, but the Placeholder values don't clear on focus with the latest Safari or Chrome Browser.

    Here's a link to the Form affected http://wintivision.ch/terminplaner/

    I've input the Placeholders in the Variable field.
    Thanks in advance for any info...

    Regards Maurice

    Posted 13 years ago on Wednesday April 13, 2011 | Permalink
  2. I'm not sure what you mean by you have input the Placeholders in the Variable field?

    Gravity Forms does support some HTML5 fields, but currently placeholder is not one of the options (although we plan on adding it and implement it using javascript so it can fallback to use jQuery on browsers that don't support the placeholder element). How are you trying to implement this?

    Posted 13 years ago on Wednesday April 13, 2011 | Permalink
  3. Hi Carl

    I was under the impression if activating the html5 option in the settings I could input a placeholder text for html5 capable browsers (which removes the field placeholder on focus). I thought I read that feature somewhere in the forums. Basically I need some output like this <input type="text" placeholder="Username"> etc. instead it outputs as follows <input type="text" value="Username">. So the Username won't clear if I focus the Text input which it should!

    So is the placeholder value only possible with javascript?
    Thanks for letting me know. Regards

    Posted 13 years ago on Wednesday April 13, 2011 | Permalink
  4. The Default Value's are default values, they don't use the Placeholder label as the user may not intend on them clearing on selection. We are going to be adding a real Placeholder option later this year that will implement the Placeholder parameter and fallback to using jQuery for non-HTML5 compliant browsers.

    The placeholder functionality is only possible right now via some custom jQuery. There are examples on the forum, if you need assistance with finding them I can do a quick search.

    Posted 13 years ago on Wednesday April 13, 2011 | Permalink

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