On 10/31/05, Steve Bergman <[EMAIL PROTECTED]> wrote: > > Is there a way to specify different kid forms depending upon the > funcname that called validation_eror()? > > If addPerson() called it, I want the for to be personForm.kid. But if > it was called by addAddress(), I want the for to be addressForm.kid.
validation_error is called with the name of the method that had failed validation. This allows you to check and then set a different tg_template return value. Note that this *will* be easier in 0.9. My current thinking is to add a parameter to expose that lets you specify what to call when validation fails. (And I've have more goodness brewing for dealing with forms.) Kevin

