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
viswanadham Aviswanadham A 

How to we can populate the based on select picklist value from one picklist to another picklist in visualforce page

Hi Experts,

i have two Picklist .Two pick list are TO and casereason.
whenever user a selected a vlaue with (Com Apg )from To Picklist then (PO Bokeed) with value dispaly in Casereason picklist .
How to we can achive in visualforce page.below i have attached my screen shatUser-added image

Thanks,
VIswa.
MoggyMoggy
wouldn't it be possible by using the TO picklist as controlling picklist? or is that picklist not a field in your object
viswanadham Aviswanadham A
HI Moggy,
Thanks for your reply ..But here case reason is standard picklist and To is custom picklist in our object .
sandeep reddy 37sandeep reddy 37
first create two pick list field  and fix dependencc and coming to vf page use standerd controller 

<apex:page standerdcontroller="account">
<apex:form>
<apex:pageblock title="dependency">
<apex:inputfield value="{!account.pick1}"/>
<apex:inputfield value="{!account.pick2}"/>
</apex;pageblock>
<apex:form>
<apex:page>
use this coad 
I Think you are imaging in this way 
I Hope Is This Help Full For U?