• Resolved londonnet

    (@londonnet)


    Hi, I am using the email field only to register users. Although it is good to have a label which says “your email address” as I do, but you have to manually highlight the text to delete it and then type in your email address.

    Would it be possible to have all the text cleared as you click on the field or have the label out side of the text box you fill?

    It just feels like another action we are asking users to do when the computer can do it automatically.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Yes, you should use the placeholder attribute for that sort of thing. Put something like this in the “values” parameter of the email field definition:

    placeholder::type your email here…

    that will set the placeholder attribute on that field.

    You don’t need to use the “default” value.

    Thread Starter londonnet

    (@londonnet)

    Many thanks for the support. I have implemented that and it works well.

    One quick question. Is it possible for the text to disappear the second the field is clicked rather than when you start typing?

    Thanks

    Plugin Author xnau webdesign

    (@xnau)

    This functionality is provided by the browser, if you want it to behave differently, you’ll need to use some of your own javascript.

    Thread Starter londonnet

    (@londonnet)

    Ahh OK got it.

    Thanks for the support. much appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘email field text’ is closed to new replies.