Forum OpenACS Q&A: ATS and form errors with "array" elements...

If you define a form using the "." notation so that the elements can be used in a handy array as follows:
    template::form create blah
    template::element create blah f.field1 -widget text -label "Field 1"
    template::element create blah f.field2 -widget text -label "Field 2"

... and an error occurs when submitting the form (say, you leave "f.field1" blank), instead of getting the usual automagically generated error message:

   Field 1 is required.

... you instead get:

   @formerror.f.field1@

Has anyone encountered/fixed this? I guess what it boils down to is representing a variable such as $formerror(f.field1) in a .adp file. Is there anything better than:

   <%= $formerror(@element.id@) %>