You need to sign in to do that
Don't have an account?

How to show and hide the input field while change the pick list value?
Hi,
I need to show the input text field while changing the pick list value="Yes". Below is my code,
How to show the input text field with label?
Thanks,
Chandra
I need to show the input text field while changing the pick list value="Yes". Below is my code,
<apex:inputField value="{!comData.Price_decrease_to_preserve_business__c}"> <apex:actionSupport event="onchange" reRender="reasonForPriceDecrease"/> </apex:inputField> <apex:outputPanel id="reasonForPriceDecrease"> <apex:inputField value="{!comData.Reason_For_Price_Decrease__c}" rendered="{!comData.Price_decrease_to_preserve_business__c=='Yes'}"/> </apex:outputPanel>From this code, I can see the input text field.But could not find the text field label.
How to show the input text field with label?
Thanks,
Chandra
Try with below
<apex:pageblocksection>
<apex:inputField value="{!comData.Price_decrease_to_preserve_business__c}"> <apex:actionSupport event="onchange" reRender="reasonForPriceDecrease"/> </apex:inputField> <apex:outputPanel id="reasonForPriceDecrease"> <apex:inputField value="{!comData.Reason_For_Price_Decrease__c}" rendered="{!comData.Price_decrease_to_preserve_business__c=='Yes'}"/> </apex:outputPanel>
</apex:pageblocksection>
Hope it helps you.
Already, my code is inside <apex:pageblocksection> only.
Is there any other solutio?
Thanks.