• Resolved jasonisfast

    (@jasonisfast)


    I’m developing a site and we’re using this great plugin to capture email addresses. My form only has one text field for an email address and a submit button. I found out how to prepopulate the field to say “Email Address” using the “get pre-filled url” option, but what I want is for the text to disappear once clicked. Now the user must delete the words “Email Address” prior to typing their email. Normally I would just use some javascript to make this happen. Is it possible for the text do disappear onclick using this plugin?

    https://www.ads-software.com/plugins/wpgform/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    Right now there isn’t a way to do this without writing a custom plugin. It would be fairly easy, although potentially risky because it would be easy to mess up, to add a “Custom Javascript” option when creating the form where you could add the necessary Javascript.

    For it to work you would need to know the form element ID (the same way it is necessary to know it for the advanced validation option).

    Possible? Yes. Currently supported? No. If there is a jQuery plugin that does this which you can point me to that I might be able to integrate, I’d be happy to look into it.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I have a beta release (v0.56-beta-3) which addresses this request. Details and how to use it are in the write up on my web site.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I have released v0.56, marking this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prepopulating text field that disappears when clicked’ is closed to new replies.