Viewing 3 replies - 1 through 3 (of 3 total)
  • Doesn’t seem like it, but if you dont mind using jQuery you can just make a placeholder like this:

    jQuery("#nf-field-X").attr("placeholder", "your custom placeholder text goes here");

    Just replace the “X” with the relevant ID of the input field and the “your custom text goes here…”

    • This reply was modified 8 years, 1 month ago by Stolle7.
    Thread Starter TheDude12X

    (@thedude12x)

    Thanks. I thought of that but when I tried it, it still did not work. The field “#nf-field-X” is hidden because of the datepicker, so I used:

    jQuery(".datepicker").attr("placeholder", "Date");

    Still no joy.

    I found a solution to this problem.
    Ninja form fields are being loaded dynamically after the whole DOM is set up so when you are using
    jQuery("#nf-field-X").attr("placeholder", "your custom placeholder text goes here");
    the datepicker don’t even exists.
    To tackle this use this code

    jQuery(window).load(function(){
    jQuery("#nf-field-X + input").attr("placeholder", "your custom placeholder text goes here");
    });

    which will be executed after all the ninja form fields are created.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No placeholder option for DATE field?’ is closed to new replies.