+ Start a Discussion

Controlling and Dependent picklist fields in visualforce

Hello All,
I am using controllind and dependent picklist fields in my visualforce page. But my controlling filed value is getting updated from a process builder. when i enable user to select one value from controlling field I am not getting any error. No Error Code below
<apex:inputField value="{!oppty.ControllingField}"/>
<apex:inputField value="{!oppty.DependentField}"/>
But, as the contrlloning field is getting updated with process builder I am using below code and getting the error.
Error Message for below code:
The dependent picklist 'DependentField' requires its controlling field 'ControllingField' to be present on the page. 
<apex:outputField value="{!oppty.ControllingField}"/>
<apex:inputField value="{!oppty.DependentField}"/>

Any suggestions please.
I appreciate your response.

Thank you