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
Riby VargheseRiby Varghese 

Hide the InputLabel

User-added image
Hi, I have a pick list with some values,based on the value a text box will appear and disappear.When i select password reset from the picklist ,its inputfield will appeared.But my problem is want to hide the input label.How its possible?
<apex:page standardController="Case">
    <apex:form >
        <apex:pageBlock >            
            <apex:pageBlockSection id="thePageBlockSection1">
            
                <apex:pageblockSectionItem >                    
                    <apex:outputLabel value="Action"></apex:outputLabel>
                    <apex:actionRegion >
                    <apex:inputField value="{!case.Action__c}">
                        <apex:actionSupport event="onchange" reRender="opTxt1, opTxt2, opTxt3"/>
                    </apex:inputField>
                    </apex:actionRegion>
                </apex:pageblockSectionItem>                
                <apex:pageblockSectionItem id="pbsItem1">                    
          <apex:outputLabel value="Pin" ></apex:outputLabel>
                    <apex:outputPanel id="opTxt1">
                        <apex:inputField id="pin" value="{!case.Pin__c}" rendered="{!if(case.Action__c== 'Pin Reset', true, false)}"/>
                    </apex:outputPanel>
                </apex:pageblockSectionItem>                
                <apex:pageblockSectionItem id="pbsItem2" >                    
          <apex:outputLabel value="Password"></apex:outputLabel>
                    <apex:outputPanel id="opTxt2">
                        <apex:inputField id="txt2" value="{!case.Password__c}" rendered="{!if(case.Action__c== 'Password Reset', true, false)}"/>
                    </apex:outputPanel>
                </apex:pageblockSectionItem>                
                <apex:pageblockSectionItem id="pbsItem3">                    
                 <apex:outputLabel value="Text 3"></apex:outputLabel>
                    <apex:outputPanel id="opTxt3">
                        <apex:inputField id="txt3" value="{!case.Replacement_Card__c}" rendered="{!if(case.Action__c== 'Replacement Card', true, false)}"/>
                    </apex:outputPanel>
                </apex:pageblockSectionItem>                             
            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
NagendraNagendra (Salesforce Developers) 
Hi Varghese,

Sorry for this issue you are encountering.

May I suggest you please check with below blog post and tweak it as per your requirement which might help you further with the above requirement. Please let us know if this helps.

Thanks,
Nagendra