Hi,
I didn't find a solution for that in Zend_Form either, but HTML itself
provides a way: Just add the attribute "readonly=readonly" to the field.
For example:
$form->addElement('text', 'someText', array('label' => 'My Text',
'readonly' => 'readonly'));
to create a readonly text field.
Greetings,
Florian
SexyAlexy schrieb:
Hi folks,
I have a Zend_Form with values in it, so far good. However, I need to add
some fields that aren't editable and there appears to be nothing that I can
use to do this, i.e
<form method=...>
<table>
<tr>
<td>content<td><td><input type="text" name="wibble"
value=<?=$record["field1"]?>/></td>
</tr>
</table>
(code for button etc)
</form>
Any ideas how i can do this with regards to the content field?
Thanks,
Alex