Index: openacs-4/packages/acs-templating/tcl/element-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/element-procs.tcl,v diff -u -r1.37.2.4 -r1.37.2.5 --- openacs-4/packages/acs-templating/tcl/element-procs.tcl 5 Jul 2019 10:55:04 -0000 1.37.2.4 +++ openacs-4/packages/acs-templating/tcl/element-procs.tcl 7 Oct 2019 16:49:45 -0000 1.37.2.5 @@ -101,14 +101,16 @@ are allowed (checkbox groups and multiselect widgets) @option validate A list of custom validation blocks in the form - { name { expression } { message } \ - name { expression } { message } ...} + { name { script } { message } \ + name { script } { message } ...} where name is a unique identifier for the validation - step, expression is a block to Tcl code that evaluates to - 1 or 0, and message is to be displayed to the user when + step, expression is a block to Tcl code (script) that should + set the result to 1 or 0, and message is to be displayed to the user when the validation step fails, that is, if the expression evaluates to 0. Use the special variable $value to refer to the value entered by the user in that field. + Note that e.g. in ad_form, all blocks are substituted, + therefore, the script might require escaping. @option sign specify for a hidden widget that its value should be signed