logo       

[symfony-users] Re: Form field uneditable?: msg#00919

symfony-users

Subject: [symfony-users] Re: Form field uneditable?


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 <symbiat@xxxxxxxxx>
To: symfony-users@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise