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
mba75mba75 

Standard dependant picklist behaviour

I create a page with a custom controller where call some standard Depedant picklist . I try in the following code  onchange="OliFrequency" :
<apex:inputField id="OliRevenue_Type" onchange="OliFrequency" value="{!OpportunityLineItem.Revenue_Type__c}"/>

<apex:inputField id="OliFrequency" value="{!OpportunityLineItem.Frequency__c}"/>

is there any simple way to have this standard behaviour working . 
 
 
maheshep.ax379maheshep.ax379
<apex:inputField id="OliRevenue_Type" value="{!OpportunityLineItem.Revenue_Type__c}">
<apex:actionSupport event="onchange" rerender="OliFrequency" />
</apex:inputField>
<
apex:inputField id="OliFrequency" value="{!OpportunityLineItem.Frequency__c}"/>

I think this should work.
mba75mba75

It does not work. I reckon I have to replicate the standard behaviour in my controller .