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
S Babu.ax1883S Babu.ax1883 

text field visible and hide based on dropdown

I have dropdown and having some values etc, USA, INDIA, UK. If I selected USA, The USA text field whould be visible. If I selected UK, the UK text field should be visible. This is my requirement.
How can I achieve this? please help me.
Vidhyasagaran MuralidharanVidhyasagaran Muralidharan
<apex:inputField  value="your value" rendered="{!IF(Picklist_field!=null, true , false)}"/>
you can try like this based on your requirement

You can use javascript to do this. You have to make that field inside the div tag and make the display= none and whenever that picklist value become desired value then make the visibility of this field as block.You have to call the javascript method whenever onchanged event is fired from trigger.

Below mentioned link might provide you some information.