Re: Form field which is displayed only

2014-06-12 Thread David Suna
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

Re: Form field which is displayed only

2014-06-12 Thread tk
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

Form field which is displayed only

2014-06-03 Thread theis
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