Index: openacs-4/packages/acs-core-docs/www/form-builder.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/form-builder.adp,v diff -u -N -r1.4 -r1.4.2.1 --- openacs-4/packages/acs-core-docs/www/form-builder.adp 25 Apr 2018 08:38:27 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/form-builder.adp 2 Mar 2019 19:30:04 -0000 1.4.2.1 @@ -1,5 +1,5 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {Using Form Builder: building html forms dynamically} +{/doc/acs-core-docs/ {ACS Core Documentation}} {Using Form Builder: building html forms dynamically} Using Form Builder: building html forms dynamically Using Form Builder: building html forms dynamically

-Overview

<authorblurb>

($‌Id: -form-builder.xml,v 1.10 2017/08/07 23:47:54 gustafn Exp -$)

-</authorblurb> -

OpenACS has a form manager called ad_form. Ad_form has an +Overview

+
($‌Id: form-builder.xml,v 1.10 2017/08/07 +23:47:54 gustafn Exp $)
+OpenACS docs are written by the named authors, and may be edited by +OpenACS documentation staff.

OpenACS has a form manager called ad_form. Ad_form has an adaptable UI. Error handling includes inline error reporting, and is customizable. However, ad_form can be tricky to use. In addition to this document, the ad_form api documentation is helpful.

@@ -25,10 +25,10 @@ Multi-part Elements

Some elements have more than one choice, or can submit more than one value.

-SELECT elements

  1. +SELECT elements
  1. -Creating the form element.  Populate a -list of lists with values for the option list.

    +Creating the form element. Populate a list
    +of lists with values for the option list.

     set foo_options [db_list_of_lists foo_option_list "
         select foo,
                foo_id
    @@ -99,7 +99,7 @@
     Errors

Here are some common errors and what to do when you encounter them:

-Error when selecting values

This generally happens when there is an error in your query.

+Error when selecting values

This generally happens when there is an error in your query.