Home
The Toolkit for Online Communities
17616 Community Members, 0 members online, 2760 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : How do I selectively position some checkboxes as 'checked' in a form ? : One Message

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.