[support] textarea readonly

Karthik narakasura at gmail.com
Wed May 3 19:40:06 UTC 2006


> Yes.  One method is to add an attributes element to your form array.  For example:
>
> $form['yourform'] = array('#type' => 'textarea',
>                            '#attributes' => array('disabled' => 'disabled'),
>                           );

or array('readonly' => 'readonly')

Michel, you should probably ask these questions on the developers' list.

K


More information about the support mailing list