Forum OpenACS Development: Re: How do I add a new switch to formbuilder and ad_form?

Collapse
Posted by Dave Bauer on
I am not sure what this is supposed to do but you can add arbitrary properties to any widget.

That is

ad_form -name myform -form {
    {mywidget:text -pos_group {...}}
}

Will magically create the property available within the
template::widget::text
tcl procedure.

You can get to it by referring to the property in the element array:

    upvar $element_reference element

    if { ! [info exists element(pos_group)] } {
        ... do something
    }