Hi, Check the setDefault method of the form. You can set it from within an action.
Brandon -----Original Message----- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of juro Sent: Monday, December 15, 2008 12:56 AM To: symfony users Subject: [symfony-users] New Forms: Dynamic Default Value Hi, I have a calendar module, where you can add appointments, etc. In the day view, I have the work hours broken up in 30 min intervals. When clicking on a time, I want to use that time to pre-populate the values for start and finish (the default value for every appointment is 30 min). I know how to define a default value in the AppointmentForm.class.php, but how can I do this dynamically? juro --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---