Hm, I managed a solution. Not very elegant, but not *too* bad either. I'll show you if you're still in need..?
Josh On Aug 20, 1:02 pm, notjosh <[EMAIL PROTECTED]> wrote: > Did you figure it out? > > I'm looking at it now, and it looks way harder than I'd have hoped.. > The form schema is (intentionally) separate from the validator, and > it's the validator that defines what's required or not. The form > schema only (sometimes) gets the error schema that the validator > schema spits out on error. Hrm. Wonder how we can inject requireds > from the validator schema. > > On Aug 6, 4:08 am, "shannon.patterson" <[EMAIL PROTECTED]> > wrote: > > > Hi everyone, > > > Is there a way in the new form framework to tell the template if a > > field is required or not? > > > I've poured over the documentation available for sfForm and have yet > > to find something and want to make sure I haven't missed it. > > > I have created a custom formatter and want that to be included in part > > of the rowFormat automatically. (protected $rowFormat = "\n%error% <tr> > > \n <td class=\"title\">%required% %label%</td>\n <td>%field% %help% > > %hidden_fields%</td>\n </tr>\n";) > > > Thanks, > > Shannon > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---