Index: openacs-4/packages/acs-templating/www/doc/guide/forms.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/forms.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/doc/guide/forms.html 30 Nov 2002 17:24:57 -0000 1.2 +++ openacs-4/packages/acs-templating/www/doc/guide/forms.html 7 Aug 2017 23:48:03 -0000 1.3 @@ -12,8 +12,8 @@ in Tcl code.

-Important Note: The -ad_form +Important Note: The +ad_form function has been written to be a more consistent, easier way to create and manage dynamic forms. Behind the scenes it uses the templating system's form builder, but it hides much of its complexity. You should definitely look at @@ -22,7 +22,7 @@

Create a form

-

Use the form create command to initialize a form:

+

Use the form create command to initialize a form:

form create add_user
@@ -31,7 +31,7 @@

Add elements

-

Once the form is created, use the element create command to +

Once the form is created, use the element create command to add elements to it:

element create add_user first_name -datatype text \ 
@@ -60,12 +60,12 @@
   template::element set_properties add_user user_id -value $user_id
 }
-

This may also be done using the value option to -element create. In this case the value is set separately +

This may also be done using the value option to +element create. In this case the value is set separately to avoid the additional database query during a submission.


-templating@arsdigita.com +