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
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.