[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:

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support