function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

capture selection

I'm using selectCheckboxes in combination with selectOptions tag to display a list of options to be selected. When the user selects these options, how do I capture those selections?

Say it displays check boxes 

Option 1

Option 2

Option 3


If a user selects Option 1, how does the controller know this? is there a variable associated with each checkbox displayed?


My end goal is: depending on the selections, the wizard will display the appropriate pages. Is this possible?


When youuse a selectOption you use what return type u can get the values like this:->

<select Options that has been returned>[y].getValue().


could you elaborate please.

say I have a selectList like this

<apex:selectList size="1" id="selectpage" value="{!selection}">
                    <apex:selectOptions value="{!paging}"/>
                   <!--  <apex:actionSupport event="onclick" action="{!jump}"/>-->


When the user clicks on a selectOption, the page needs to jump to another page. How is my controller going to handle the jump() method??