Forum OpenACS Q&A: Response to How do I selectively position some checkboxes as 'checked' in a form ?

element create foo bar -widget checkbox -options { { box1 "Box 1" } { box2 "Box 2" } } -values { box1 }

Above should have box1 checked, box2 not checked.

It's written from memory, so I may have switched some arguments.

Basically: -values switch takes a list of option values for which the checkboxes should be checked.