Am 12.11.2012 23:53, schrieb Massimo Manghi: > > > On 11/12/2012 11:03 AM, Harald Oehlmann wrote: >>> 2) There are 2 entries for 'checkbox' and no explanation for >>> 'checkboxes'. The second entry might be further elaborated adding some >>> examples and be changed to be the manual entry for method 'checkboxes'. >>> Harald can you provide for a simple code example to be placed there? I >>> can do it myself but you probably have one at reach. >> >> Referencing page: >> http://tcl.apache.org/rivet/manual/form_package.html >> - checkbox is explained twice. >> - the parameters -values and -labels are documented for checkbox (which >> are AFAIK not supported). They should be documented for checkboxes >> - As an example, I would just use the example in checkbox and formulate >> it with checkboxes: >> myform checkboxes options -values {opt1 opt2 opt3 opt3} -labels {"Option >> 1" "Option 2" "Option 3" "Option 4"} > > I tested the example you proposed with the intention of using it for > documenting the 'checkboxes' method. Value in the 'response' array are > not treated properly at least in the case Option 2 and Option 4 are > selected because also Option 3 gets checked after the form date are > sent. It works if I check Option 1 and Option 3 for example, I haven't > tested other combinations of checkbox selections. The whole script > > source form2.tcl > > load_response response > catch {parray response} > form myform -defaults response -method post > myform start > > myform checkboxes options -values {opt1 opt2 opt3 opt3} -labels {"Option > 1" "Option 2" "Option 3" "Option 4"} > > myform submit save_tps -value "Save" > myform end > myform destroy
Massimo, Sorry, there was an error in my example, please correct the double-opt3 in the values list. The example should be as follows: myform checkboxes options -values {opt1 opt2 opt3 opt4} -labels {"Option 1" "Option 2" "Option 3" "Option 4"} Thank you, Harald --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org For additional commands, e-mail: rivet-dev-h...@tcl.apache.org