set_readonly(array $cols) : $this
Set one more more columns as read only field. Note that the parameter is an array.
Parameters
array | $cols |
|
set_readonly(array $cols) : $this
Set one more more columns as read only field. Note that the parameter is an array.
array | $cols |
|
When editing existing records on a form, you can set certain fields to be read only. set_readonly() method takes an array of fields that are read only during editing.
Note that you can only set read only fields when editing existing data. You cannot fields to be read only during new data entry. If you do not want a field to be editable when entering new data, you can hide a field from displaying using set_hide().