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
srikanthpallasrikanthpalla 

please any can help me to create two check boxs in box like shown in screen shot

How we will create the ParticipantType field with check boxes like shown in screen shot
JyothsnaJyothsna (Salesforce Developers) 
HiSrikanth,

please check the below sample code for checkbox.

Visualforce Page
 
<apex:page >
<apex:form >
    <apex:pageBlock >
        <apex:pageBlockSection >
            <apex:pageBlockSectionItem >Name<apex:inputText /></apex:pageBlockSectionItem>
            <apex:pageBlockSectionItem >Age:
                <apex:selectRadio >
                    <apex:selectOption itemLabel="Male" itemValue="m"/>
                    <apex:selectOption itemLabel="Female" itemValue="f"/>           
                </apex:selectRadio>     
            </apex:pageBlockSectionItem>
            <apex:pageBlockSectionItem >Skills:
                <apex:selectcheckboxes layout="pageDirection">
                    <apex:selectOption itemLabel="C" itemValue="f"/>
                    <apex:selectOption itemLabel="C++" itemValue="cpp"/>    
                    <apex:selectOption itemLabel="JAVA" itemValue="j"/>
                    <apex:selectOption itemLabel="HTML" itemValue="h"/>  
                    <apex:selectOption itemLabel="JAVASCRIPT" itemValue="js"/>
                    <apex:selectOption itemLabel="VC++" itemValue="vcpp"/>         
                </apex:selectcheckboxes>     
            </apex:pageBlockSectionItem>
            <apex:pageBlockSectionItem >Active?<apex:inputCheckbox /></apex:pageBlockSectionItem>
        </apex:pageBlockSection>
        <apex:pageBlockButtons >
            <apex:commandButton value="Store"/>
        </apex:pageBlockButtons>
    </apex:pageBlock>
</apex:form>
</apex:page>

User-added image


Hope this helps you!
Best Regards,
Jyothsna
 
srikanthpallasrikanthpalla
HI Jyothsna
  
you posted useful inermation but i am looking different one please check my screen shot once and in that we have participent type field having two check boxscheck boxes in that.i am looking for that one please let me if you that solution. i am sharing once again screen shot