Forum OpenACS Q&A: Using multi selects with ad_form and dynamic data

Is this just not possible? The noquoting stuff seems to render ad_form multi-select useless with dynamic data.

This is what I've done:

  {organization_type_id:text(checkbox),multiple
    {label "Organization type"}
    { options {[db_list_of_lists get_org_types { }]}}
    }

The problem is, this is shown on the add-edit page as the HTML code it generates, instead of actually work. My organization types table has 4 entries, so I get four sets of HTML code, which would show the checkboxes I want, if they weren't quoted.

Has anybody found a workaround for this?

Collapse
Posted by Jade Rubick on
Jeff Davis figured this out (praise be his name!)

The problem was with the form type. In the adp file, I had style="plain" in the <formtemplate id="org"></formtemplate> section. This hasn't been updated to the 5.0 noquote stuff yet, so it was breaking.

I've posted a bug at:

https://openacs.org/bugtracker/openacs/bug?bug%5fnumber=1183

Thanks again, Jeff!

Collapse
Posted by Randy O'Meara on
So, you used 'style="????"'? Or, no style at all?
Collapse
Posted by Jade Rubick on
I fixed the problem by getting rid of style="plain" and leaving out the entire style tag.

I believe Jarkko has fixed this, but I haven't double checked yet.