Use the Checkbox Group builder to create a group of check boxes.
For example, you might use the Checkbox Group builder to present users with a list of items they can select for inclusion on their personal web page. These items might be a stock ticker, a weather report, or a news headlines section. By setting or clearing the items in the Checkbox Group, users could indicate the items they want to include and exclude.
- In most cases, select the Return State of All Values data format.
This format displays all the items along with their set and cleared states. The other format, while essentially containing the same information, assumes that the user of this data already knows what all the possible choices are. That may not be a reasonable assumption to make.
- The format of the variable for Selected Values depends on the return data format.
If you enter an indirect reference in the Checkbox List Data
input, the Checkbox Group builder requires the format of the variable for the Selected Values
input to be formatted according to the format selected from the Return Data Format
Checkbox Group builder inputs
This topic describes the inputs for the Checkbox Group builder inputs.
About the Value Element and Label Element inputs
In general, the Value Element
and Label Element
builder inputs are used to associate a visible label with an invisible value that is actually submitted to the IBM® WebSphere® Portlet Factory servlet.
Retrieving multiple input values from a Checkbox Group 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.
Parent topic: Builder help
About using the builder call editor
Specification of lists
Locating control builder calls on pages