Why are you using a form field at all? If you just want to display the data
then just output the data as text.
On Tuesday, June 3, 2014 2:13:58 PM UTC+3, th...@gmx.at wrote:
>
> I'm using CakePHP 2.4.9
> In my application I want to have a readonly field where I display data
> which cannot be cha
Try to use the readonly and disabled parameter for the Person.country_id
field.
$this->Form->input('Person.country_id', array('type' => 'hidden'*, **'readonly'
=> 'readonly', **'disabled' => 'disabled'*, ...));
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://t
I'm using CakePHP 2.4.9
In my application I want to have a readonly field where I display data
which cannot be changed. E.g., a persons country: there is a hidden field
with the country ID and a readonly text field with the countries name. The
user can see the persons country but is not able to