Easy Contact Forms
How to set up placeholder ? (3 posts)

  1. grandfso
    Posted 3 years ago #

    I am in the field default value settings section. There is a nice option to make the default value appear as placeholder. The problem I encounter is that if I simply put _anything_ into Default value >> Advanced >> Default value CSS class (so for example I put: "BlahBLah") the placeholder works (When saying 'works' I mean, if I focus my cursor inside the input field the default value disappears)!

    If I leave the Default Velue CSS class field blank, the placeholder doesn't work.

    The question is: What should I put into the Default Velue CSS class field in order for it to be correct ?


  2. grandfso
    Posted 3 years ago #

    Hi, any ideas here ?

  3. Henkjandebruik
    Posted 3 years ago #

    it does the following:

    - If the page loads, this settings doesn't do anything;
    - If you click on the field, the placeholder goes away;
    - If the user leaves the field blank, the placeholder returns. It also binds the specified class name to the input field. I.e., if you fill in as class "placeholder", and in your CSS is like the following example, the text appears gray.

    .placeholder { color: gray; }

    To make the placeholder work you need to do the following:
    - Enable "Default value" and type in a default value.
    - Fill in and enable the field "default value CSS class". Even if you don't want to use it, fill it it - even a dummy.
    - Enable "validate". If you don't want that the specific field gets validated, enter in "min length: 0".

    It looks like this functionality is quite a bit bugged - but it works if you follow the steps above.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic