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.30.2.10 -r1.30.2.11 --- openacs-4/packages/acs-core-docs/www/form-builder.html 21 Jun 2016 07:44:36 -0000 1.30.2.10 +++ openacs-4/packages/acs-core-docs/www/form-builder.html 23 Jun 2016 08:32:45 -0000 1.30.2.11 @@ -29,20 +29,20 @@ }
What this will do is set the value for pm_task_id and all the other form elements, and resubmit the form. If you then include a - block that extends the form, you'll have the opportunity to add in + block that extends the form, you'll have the opportunity to add in subcategories:
if {[info exists pm_task_id] && $pm_task_id ne ""} { db_1row get_task_values { } ad_form -extend -name form_name -form { ... }
Note that you will get strange results when you try to set - the values for the form. You'll need to set them explicitly in an - -on_refresh section of your ad_form. In that section, you'll get + the values for the form. You'll need to set them explicitly in an + -on_refresh section of your ad_form. In that section, you'll get the values from the database, and set the values as so:
db_1row get_task_values { } template::element set_value form_name estimated_hours_work $estimated_hours_work -