In your form class use following: $this->widgetSchema['field_to_make_uneditable']->setAttribute('readonly','readonly');
It works with inputbox only though -------- Original Message -------- Subject: [symfony-users] Form field uneditable? From: Eno <symb...@gmail.com> To: symfony-users@googlegroups.com Date: Friday 31 July 2009 10:26 PM > Is there a way to set a form field as uneditable? > > I have a field I want to display in my form but I need to generate it when > I save the form so the user can't change it manually. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---