Hi Vinay, thank you for your response. Here is my VF snippet: I am trying to render the "Addition Notes" input text only if on the Category picklist, the "other" option is selected. However it is not working. Is that possible? What would I need to change in my code?
<apex:outputPanel styleClass="custPopup" layout="block" rendered="{!displayPopUp}"> <b><u>Equipment Request</u></b> <br/> Before submitting this request, please verify this referral information is correct: <br/> <br/> <b> Name: </b> {!lead.name} <br/><b> Facility: </b> {!lead.facility__r.name}
I don't think this is possible. However, I found below reference that might help you.
https://salesforce.stackexchange.com/questions/11960/picklist-selected-value-auto-populate-to-textbox-in-visualforce-page
Thanks,
All Answers
I don't think this is possible. However, I found below reference that might help you.
https://salesforce.stackexchange.com/questions/11960/picklist-selected-value-auto-populate-to-textbox-in-visualforce-page
Thanks,
<apex:outputPanel styleClass="custPopup" layout="block" rendered="{!displayPopUp}">
<b><u>Equipment Request</u></b>
<br/>
Before submitting this request, please verify this referral information is correct:
<br/>
<br/> <b> Name: </b> {!lead.name}
<br/><b> Facility: </b> {!lead.facility__r.name}
<br/> <b> Category: </b> <apex:selectList size="1" value="{!country}">
<apex:selectOptions value="{!countries}"/>
<apex:actionSupport event="onchange" reRender="a,bbb"/>
</apex:selectList>
<br/> <b> Size: </b> <apex:selectList size="1" value="{!state}" id="a">
<apex:selectOptions value="{!states}"/>
</apex:selectList>
<br/>
<apex:outputPanel id = "bbb" rendered="country == 'Other'">
<br/> <b> Additional notes:</b> <apex:inputText style="height:30px;" value="{!freeText}" />
</apex:outputPanel>