Index: openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl,v diff -u -r1.43 -r1.44 --- openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl 28 Jan 2004 17:31:11 -0000 1.43 +++ openacs-4/packages/acs-tcl/tcl/form-processing-procs.tcl 29 Jan 2004 10:12:44 -0000 1.44 @@ -352,13 +352,32 @@
The -form block is a list of form elements, which themselves are lists consisting of one or two - elements. The first member of each element sublist declares the form element name, type, widget, whether or + elements. The first member of each element sublist declares the form element name, datatype, widget, whether or not the element is a multiple element (multiselect, for instance), and optional conversion arguments. The second, optional member consists of a list of form element parameters and values. All parameters accepted by the form element create procedure are allowed.
+ +
template::data::validate::float
on this list implements the 'float' datatype.
+ template::widget::radio
implements the 'radio' widget.
+ Not all widgets are compatible with all datatypes.
+ -label "My label"
is written {label "My label"}
in the
+ element sublist of the -form block to ad_form.
+ + Some form builder datatypes build values that do not directly correspond to database types. When using the form builder directly these are converted by calls to datatype::get_property and datatype::acquire. When using ad_form, "to_html(property)", "to_sql(property)" and "from_sql(property)" declare the appropriate