Forum OpenACS Development: Re: Heads-up: New Workflow Package

Collapse
Posted by Dan Wickstrom on
I'm looking at something right now that has comments in ad_form, and it seems to work fine. How is it a problem to use comments in ad_form?
Collapse
Posted by Tilmann Singer on
Dan, the only way I can think of is to create the form definition list dynamically, like this:
set form_def {
    item_id:key
    {index_p:integer(hidden)
        {value $index_p}}
}

# here is a comment on an element
lappend form_def {
     name:text(hidden)
}

ad_form -form $form_def
Which seems a bit awkward to me, but propably that's just matter of taste. How does the code you're looking at do that?