D
D
Dima4jin2014-06-18 11:35:10
Drupal
Dima4jin, 2014-06-18 11:35:10

How to add attribute to drupal 7 webform input?

Need to add "readonly" attribute to standard input in drupal 7 webform. Is
there any hook?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-06-18
@Dima4jin

Using hook_form_alter
so or
$form['input-name']['#disabled'] = TRUE;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question