Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/form-builder.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/form-builder.xml,v diff -u -N -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/form-builder.xml 27 Oct 2014 16:39:30 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/form-builder.xml 7 Aug 2017 23:47:54 -0000 1.10 @@ -73,17 +73,17 @@ 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 ""} { + 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 { } @@ -94,12 +94,12 @@ Troubleshooting - A good way to troubleshoot when you're using ad_form is to + A good way to troubleshoot when you're using ad_form is to add the following code at the top of the .tcl page (thanks Jerry Asher): -ns_log notice it's my page! +ns_log notice it's my page! set mypage [ns_getform] if {$mypage eq ""} { ns_log notice no form was submitted on my page