Forum OpenACS Development: Re: ad_form vs. template::form vs. roll your own

Collapse
Posted by Don Baccus on
It is easy enough to build a single form with multiple rows as you describe.  Just use the -extend form of ad_form to add each select widget for the rows as you step through them.
Collapse
Posted by Tilmann Singer on
Creating your own layout within the templating system as Don said works like this:

<formtemplate id="myform">
some html stuff ...<br><br><br>
<formwidget id="mywidget1" size="20" ...>
...
</formtemplate>

As soon as the contents of the formtemplate tag are not empty it will use those to render the form instead of rendering it automatically.

Collapse
Posted by Chris Davies on
That was the piece I was missing.

I had done that, but wasn't reading the error message in the logs correctly.

formbutton:ok  :)

I was missing the :ok on that widget.

Thanks for the help everyone!