I was able to get this to work:
db_multirow evalu query {
SELECT req_bank_id
FROM jobs_req_map
WHERE position_id=:position_id
}
set form "\{ eval_id:key(jobs_eval_id_seq)"
set row [template::multirow size evalu]
for {set i 1} {$i <= $row} {incr i} {
set label "\"Requirement $i\""
append form " \{ req$i:text(text) {label $label}\} "
}
append form \}
ad_form -name evals \
-cancel_url index \
-form $form
This works, but the form has no text boxes. Can ad_form take a variable like this? I have check the string $form and it is correct syntax for ad_form.
Thanks, Brad