Scenario: Project state is the dependent picklist on the country picklist, for Countries which do not have states/have some other state which is not listed in the state picklist, user selects "Other" from the state picklist. Once they select "Other", blank text field should be populated in which the user can enter the name of the state.

Also Project state and Project country is being mapped from Lead to Accounts and opportunities on conversion, hence whatever value entered in the text field, should be mapped to the project state field in the accounts and opportunities

1 Answer 1

<apex:selectList value="{!country}" reRender="txtOtherCountry">
<apex:inputText value="{!otherCountry}" id="txtOtherCountry" rendered="{!if(country ='other',true,false)}"/>
  • Add a description also which explains how this resolves the issue.
    – Reshma
    May 19, 2017 at 5:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .