Index: openacs-4/packages/acs-templating/tcl/form-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/form-procs.tcl,v diff -u -r1.7.2.7 -r1.7.2.8 --- openacs-4/packages/acs-templating/tcl/form-procs.tcl 2 Jul 2003 19:11:31 -0000 1.7.2.7 +++ openacs-4/packages/acs-templating/tcl/form-procs.tcl 2 Jul 2003 19:12:45 -0000 1.7.2.8 @@ -467,6 +467,17 @@ } } + # Check for errors in hidden elements + foreach element_ref $elements { + + # get a reference by element ID + upvar #$level $element_ref element + + if { [string equal $element(widget) "hidden"] && [exists_and_not_null $id:error($element(id))] } { + error "Validation error in hidden form element: '[set $id:error($element(id))]' on element '$element(id)'." + } + } + # get any additional attributes developer specified to include in form tag if { [info exists properties(html)] } { array set attributes $properties(html)