[solved] $form->setFieldAttribute readonly won't work? - Joomla! Forum - community, help and support
hi,
i have tried set temporary form field 'readonly'.
so have added in getform() method:
but seems not work. can seen in debugger, readonly option added in xml field attributes. not more in generated html output.
when try this, works:
but need readonly!
exists here bug?
edit:
sorry. must be:

i have tried set temporary form field 'readonly'.
so have added in getform() method:
code: select all
$form->setfieldattribute( 'fieldname', 'readonly', 'readonly' );but seems not work. can seen in debugger, readonly option added in xml field attributes. not more in generated html output.
when try this, works:
code: select all
$form->setfieldattribute( 'fieldname', 'disabled', 'true' );but need readonly!
exists here bug?
edit:
sorry. must be:
code: select all
$form->setfieldattribute( 'fieldname', 'readonly', 'true' );
Comments
Post a Comment