Forum OpenACS Development: Re: Ad_form: assigning multiple values to checkbox element

Collapse
Posted by Dave Bauer on
In the edit request you need to set the variable for category_$i to a list so something like

set category_$i [split $database_value] since it looks like the database value is a space separated string.

Dave,

I've tried that before. So far, It works only when only one id (i.e. option) is selected previously or it assigns and checks the last value only

I've tested it specifically to 1 in order to get the chunk correct then I generalized to all, as in $i, but It doesn't work.

Best wishes,
Iuri

<vent> I've done that in the past but somehow It doesn't work anymore </vent> :)

Furthermore,
I tried another approach as bellow, but nothing yet.

Ex. "{1701} {1094} {1672} {1741}"