Refreshing an ad_form
{pm_task_id:integer(select),optional
{section "Task"}
{label "Subject"}
{options {$task_options}}
{html
{onChange "document.log_entry_form.__refreshing_p.value='1';
submit()"}
}
{value $pm_task_id}
}
}
In this case, the form is called log_entry_form. When you submit the form, it will show the form again, this time with the value for pm_task_id and the rest of the form set. I then have a section of my form that says:
if {[info exists pm_task_id]} {
extend the form here
}
This can allow you to do things like sub-categories with ad_form.
06:19 PM, 28 May 2004 by Jade Rubick Permalink | Comments (0)
| May 2004 | ||||||
| S | M | T | W | T | F | S |
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | |||||