A
A
Alexander Ivanov2016-01-26 14:26:24
Drupal
Alexander Ivanov, 2016-01-26 14:26:24

Why is drupal 7 webform not displaying placeholder?

On one of the drupal 7 sites, the webform module allows you to edit the Placeholder in the Display>Placeholder (The placeholder will be shown in the field until the user starts entering a value)
On another site, this field is not in the display, how can I fix this and where?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
artem_music, 2016-01-26
@cimonlebedev

Drupal module glitch. You can fix it manually, or hardcode something like this:
And you can also put it down automatically using js placeholder based on the label:

$('.form-item input').each(function(){
$(this).attr('placeholder',$(this).prev().html());
});

U
UksusoFF, 2016-01-26
@UksusoFF

Emnip is out of the box and not there. It is installed separately: https://www.drupal.org/project/webform_hints

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question