You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by johnson <jo...@erp.tw> on 2007/06/01 01:45:44 UTC

Re: Processing checkboxes from a form via flowscript

Please see the issue I post in 
http://issues.apache.org/jira/browse/COCOON-1900

it's fix in 2.1.10, If you use early version, please fix it by 
yourself.(by fixing the form-field-styling.xsl).

Best Regards

johnson hsu

Derek Hohls ??:
> Cocoon 2.1.8
>  
> I'm using flowscript to create a form, that consists of variable
> number
> of checkboxes:
>  
>    var theForm = new Form("cocoon:/myform-create.xml");
>     theForm.showForm("rep/myform-display");  
>     var nmodel = theForm.getModel();
>     var theValues = Array();
>  
> Now I need to process all the checkboxes and do the following:
> * test if the ID matches a certain pattern AND checkbox is checked
> * extract the value of the checkbox name
> * store the result in the "theValues" array
>  
> I'd appreciate any pointers to sample code on how to do this.
>
> Thanks
> Derek
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org