I have a visualforce page that is using rerender to display fields depending on a picklist value.
The problem I have is that the allignment and styling has been lost. I have read that you need to wrap the outlout label and input field within a pageblockSectionItem which ive done, but had no luck.
Thanks
<apex:pageBlockSectionItem >
<apex:outputLabel value="Category Detail" for="RegPickList" />
<apex:actionRegion >
<apex:inputField value="{!case.Category_Detail_IT_Help_Desk__c}" required="true">
<apex:actionSupport event="onchange" reRender="rerenderLabelChange, RegPickList HardwareAsset, OtherSoftware" />
</apex:inputField>
</apex:actionRegion>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
</apex:pageBlockSectionItem>
<apex:outputPanel id="rerenderLabelChange" >
<apex:pageBlockSectionItem rendered="{!case.Category_Detail_IT_Help_Desk__c == 'Laptop'}">
<apex:outputLabel value="Hardware Asset" for="HardwareAsset"/>
<apex:inputField value="{!case.Hardware_Asset__c}" label="Hardware Asset" id="HardwareAsset"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem rendered="{!case.Category_Detail_IT_Help_Desk__c != 'Laptop'}">
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem rendered="{!case.Category_Detail_IT_Help_Desk__c == 'Other Software'}">
<apex:outputLabel value="Hardware Asset" for="OtherSoftware" />
<apex:inputField value="{!case.Other_Software__c}" label="Other Software" id="OtherSoftware"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem rendered="{!case.Category_Detail_IT_Help_Desk__c != 'Other Software'}">
</apex:pageBlockSectionItem>
</apex:outputPanel>