So you are saying the only way to change a form field once the object
exists, is to completely rebuild the form?

OK, I'll have to restructure my code a bit, but it seems to work.
Thanks.

On Apr 21, 11:56 am, Bernhard Schussek <[email protected]> wrote:
> Hi Mark,
>
> What exactly is it what you want to do? If you want to provide a
> default value for the field, there are several ways to do this:
>
> 1. You can pass the defaults to the form constructor
> $form = new sfForm(array('field' => 'value'));
>
> 2. You can set the defaults using setDefault()/setDefaults() f.i. from
> within your configure() method:
> $form->setDefault('field', 'value');
>
> Bernhard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to