Index: openacs-4/packages/acs-core-docs/www/form-builder.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/form-builder.html,v diff -u -r1.33.2.1 -r1.33.2.2 --- openacs-4/packages/acs-core-docs/www/form-builder.html 2 Mar 2019 19:30:04 -0000 1.33.2.1 +++ openacs-4/packages/acs-core-docs/www/form-builder.html 10 Mar 2019 21:47:14 -0000 1.33.2.2 @@ -6,7 +6,7 @@ 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.
Some elements have more than one choice, or can submit more than one value.
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 " + documentation is helpful.
Some elements have more than one choice, or can submit more than one value.
A situation you may run into often is where you want to pull in form items from a sub-category when the first category is selected. Ad_form makes this fairly easy to do. In the definition - of your form element, include an html section
{pm_task_id:integer(select),optional + of your form element, include an HTML section{pm_task_id:integer(select),optional {label "Subject"} {options {$task_options}} {html {onChange "document.form_name.__refreshing_p.value='1';submit()"}} @@ -51,5 +51,5 @@ ns_set print $mypage }
Here are some common errors and what to do when you - encounter them: