+ Start a Discussion
SurenderSurender 

Display some value in inputText fields based on selection of checkboxes in the sameline.

Hi,

 

I have a requirement like i want to display value in inputText fields based on selection of checkboxes in the same line.

 

Below is vf page code which has checkboxes incorporated.

<apex:PageBlock >
     <apex:pageBlockSection columns="1"  >
         <apex:outputPanel id="modulesPanel">
             <apex:outputLabel value="Select the Modules :">
                 <apex:selectCheckboxes value="{!selectedField}" layout="pageDirection">
                     <apex:SelectOptions value="{!items}"/>
                 </apex:selectCheckboxes>
            </apex:outputLabel>
         </apex:outputPanel>
     </apex:pageBlockSection>
 </apex:PageBlock>
 

How can i show inputText fields in the sameline of checkboxes based on selection.

Also the number of the checkboxes is not fixed and it can vary based on other fields.

 

Please help me in achieving the above.