You can retrieve multiple input values from a Checkbox Group builder for use in a model by creating a iterator in the Method builder.

You can retrieve multiple input values from a Checkbox Group builder for use in a model by creating a iterator in the Method builder.

Using an iterator

A Checkbox Group builder will submit multiple values with the same name. If you request the value of the checkbox input, you will always retrieve only the first value, unless you use an iterator for the input values. Create an iterator by writing some code in the Method builder. The following code gets an Iterator for the input values passed by a Checkbox builder. Call this method when you submit the page with the Checkbox Group builder.

Iterator code sample

You will want to modify the code for your particular application. This code assumes that the model has two Variable builders in it named displayData and selectedData. It also assumes that the Checkbox Group builder was placed on a tag named checkboxTag. The final action of the method is to display a page called page1. You should change the code if you do not have a page1 or if you want to do something other than display a page called page1.