Home
The Toolkit for Online Communities
15939 Community Members, 0 members online, 2255 visitors today
Log In Register

Forum OpenACS Q&A: Re: Newbie Question - AdForm - Pulling from DB to Create a List

OpenACS Home : Forums : OpenACS Q&A : Re: Newbie Question - AdForm - Pulling from DB to Create a List : One Message

+
Posted by garry g on
Yes, what I mean is having 2 checkboxes (not radio buttons) beside each database item.  A user would be able to select no options, one of the options, or both of the options.

I am already using the db_list_lists construct as follows:

set programs [db_list_of_lists get_programs "SELECT * FROM programs"]


In the code, I have:

{programs: test(checkbox)
  {label "Whatever"}
  {options {$program_groups} {value $prog_name}}
}

This code snippet works for 1 checkbox, but I want to add another checkbox beside the other one.