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

Solution :

Lars' solution works. Here is the correct code snippet :

template::element create mod_serv users 
    -widget checkbox 
    -options { {Premier 1} {Deuz 2} {Troiz 3}} 
    -values { 1 2 }
And it should probably also work (I haven't tested it yet) with template::element set_value...

Thanks, Lars !