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
rajesh kumar 273rajesh kumar 273 

pageblocksectionitems having 2 child components error is seen?

<apex:pageBlockSectionItem> may have no more than 2 child components
this error is seen what to do?
Deepak Kumar 138Deepak Kumar 138
This error tells that inside a <apex:pageBlockSectionItem> item tag like below you can't have more than two direct childs - 
This is correct - 
<apex:pageBlockSectionItem>
<apex:outputPanel>....</apex:outputPanel>
<apex:outputPanel>....</apex:outputPanel>
</apex:pageBlockSectionItem>

This is wrong - 
​<apex:pageBlockSectionItem>
<apex:outputPanel>....</apex:outputPanel>
<apex:outputPanel>....</apex:outputPanel>
<apex:outputPanel>....</apex:outputPanel>
</apex:pageBlockSectionItem>
ACHYUT CHAVADAMACHYUT CHAVADAM
i have also same problem deepak kumar 138 sir 
 in this one  what i am doing wrong?

                  <apex:pageBlockSectionItem>
                 <apex:outputlabel>industry</apex:outputlabel>/>
                 <apex:inputField value="{!account.industry}"/>
                 </apex:pageBlockSectionItem>
            
DoondiDoondi
I too have same issue, any tips or suggestions??
SijuSiju
Add <apex:outputPanel layout="block"> . PFB sample code
<apex:pageBlockSectionItem>
	<apex:outputPanel layout="block">
		<apex:outputText value="Name: {!test1}"></apex:outputText>
		<apex:outputText value="Quote Value: {!test2}"></apex:outputText>
	   <apex:outputText value="Quote Value: {!test3}"></apex:outputText>
	</apex:outputPanel>
</apex:pageBlockSectionItem>