You need to sign in to do that
Don't have an account?

Dropdown issue in Vf page
Hi All,
It is my Request page and Highlighted fields are Dropdown fields which are controlled by same fields (Ex.Product is controlled by Line of business and Line of business is controlled by Select the Organizations for these request.)

Problem is that Line of business did not populate anything once the What service are you looking for? Field selected. Line of business populate data when i deselect What service are you looking for? field.
Please see the below VF page coding.
<apex:pageblocksection columns="1" id="Requestor" title="Request Details" >
<apex:outputPanel >
<apex:inputField value="{!CCMNewRequest.What_service_are_you_looking_for__c}" >
<apex:actionSupport event="onchange" reRender="RequestorSection1,dummy,Requestor,FormId,CoSA" status="SearchStatus"/>
</apex:inputField>
</apex:outputPanel>
</apex:pageblocksectionItem>
</apex:outputpanel>
<apex:pageblocksectionItem >
<apex:outputlabel value="Are you submitting on another person's behalf?" style="width:5px"> </apex:outputLabel>
<apex:outputPanel >
<apex:inputField value="{!CCMNewRequest.Are_You_Submitting_on_Another_s_Behalf__c}" >
<apex:actionSupport event="onchange" reRender="RequestorSection,dummy" status="SearchStatus"/>
</apex:inputField>
</apex:outputPanel>
</apex:pageblocksectionItem>
</apex:pageBlockSection>
<apex:outputpanel id="RequestorSection" >
<apex:outputpanel id="test">
<apex:pageblockSection id="CoSA" columns="1" >
<apex:pageblocksectionItem >
<apex:outputlabel value="Is your request assigned to an Enterprise Project Manager?" style="width:100px;" >
</apex:outputLabel>
<apex:outputPanel >
<apex:inputField value="{!CCMNewRequest.Is_your_request_assigned_to_an_Ent_PM__c }" required="false" >
<apex:actionSupport event="onchange" reRender="CoSA" status="SearchStatusprjmail"/>
</apex:inputfield>
</apex:outputPanel>
</apex:pageblocksectionItem>
<apex:pageblockSectionItem >
<apex:outputLabel value="Select the organization(s) for this request " >
</apex:outputLabel>
<apex:inputField value="{!CCMNewRequest.Select_the_org_s_for_this_request__c}" styleClass="required" style="float:left;margin-left:13px;width:150px">
<apex:actionSupport event="onchange" reRender="maillink,pocSection1,CoSA" status="SearchStatuscom"/>
</apex:inputField></apex:actionRegion>
</apex:outputPanel>
</apex:pageblockSectionItem>
<apex:pageblocksectionItem >
<apex:outputlabel value="Line of Business" >
</apex:outputlabel>
<apex:outputpanel >
<apex:inputField value="{!CCMNewRequest.Line_of_Business__c}" id="line" styleClass="required" style="float:left;margin-left:13px;width:150px"/>
<apex:actionSupport event="onchange" reRender="maillink,pocSection1" status="SearchStatuscom"/>
</apex:outputpanel>
</apex:pageBlockSectionItem>
<apex:pageblocksectionItem >
<apex:outputlabel value="Product" >
</apex:outputlabel>
<apex:outputpanel >
<apex:inputField value="{!CCMNewRequest.Product__c}" id="product" styleClass="required" />
<apex:actionSupport event="onchange" action="{!getProductValues}" reRender="maillink,pocSection1" status="SearchStatuscom"/>
It is my Request page and Highlighted fields are Dropdown fields which are controlled by same fields (Ex.Product is controlled by Line of business and Line of business is controlled by Select the Organizations for these request.)
Problem is that Line of business did not populate anything once the What service are you looking for? Field selected. Line of business populate data when i deselect What service are you looking for? field.
Please see the below VF page coding.
<apex:pageblocksection columns="1" id="Requestor" title="Request Details" >
<apex:outputPanel >
<apex:inputField value="{!CCMNewRequest.What_service_are_you_looking_for__c}" >
<apex:actionSupport event="onchange" reRender="RequestorSection1,dummy,Requestor,FormId,CoSA" status="SearchStatus"/>
</apex:inputField>
</apex:outputPanel>
</apex:pageblocksectionItem>
</apex:outputpanel>
<apex:pageblocksectionItem >
<apex:outputlabel value="Are you submitting on another person's behalf?" style="width:5px"> </apex:outputLabel>
<apex:outputPanel >
<apex:inputField value="{!CCMNewRequest.Are_You_Submitting_on_Another_s_Behalf__c}" >
<apex:actionSupport event="onchange" reRender="RequestorSection,dummy" status="SearchStatus"/>
</apex:inputField>
</apex:outputPanel>
</apex:pageblocksectionItem>
</apex:pageBlockSection>
<apex:outputpanel id="RequestorSection" >
<apex:outputpanel id="test">
<apex:pageblockSection id="CoSA" columns="1" >
<apex:pageblocksectionItem >
<apex:outputlabel value="Is your request assigned to an Enterprise Project Manager?" style="width:100px;" >
</apex:outputLabel>
<apex:outputPanel >
<apex:inputField value="{!CCMNewRequest.Is_your_request_assigned_to_an_Ent_PM__c }" required="false" >
<apex:actionSupport event="onchange" reRender="CoSA" status="SearchStatusprjmail"/>
</apex:inputfield>
</apex:outputPanel>
</apex:pageblocksectionItem>
<apex:pageblockSectionItem >
<apex:outputLabel value="Select the organization(s) for this request " >
</apex:outputLabel>
<apex:inputField value="{!CCMNewRequest.Select_the_org_s_for_this_request__c}" styleClass="required" style="float:left;margin-left:13px;width:150px">
<apex:actionSupport event="onchange" reRender="maillink,pocSection1,CoSA" status="SearchStatuscom"/>
</apex:inputField></apex:actionRegion>
</apex:outputPanel>
</apex:pageblockSectionItem>
<apex:pageblocksectionItem >
<apex:outputlabel value="Line of Business" >
</apex:outputlabel>
<apex:outputpanel >
<apex:inputField value="{!CCMNewRequest.Line_of_Business__c}" id="line" styleClass="required" style="float:left;margin-left:13px;width:150px"/>
<apex:actionSupport event="onchange" reRender="maillink,pocSection1" status="SearchStatuscom"/>
</apex:outputpanel>
</apex:pageBlockSectionItem>
<apex:pageblocksectionItem >
<apex:outputlabel value="Product" >
</apex:outputlabel>
<apex:outputpanel >
<apex:inputField value="{!CCMNewRequest.Product__c}" id="product" styleClass="required" />
<apex:actionSupport event="onchange" action="{!getProductValues}" reRender="maillink,pocSection1" status="SearchStatuscom"/>
Thanks for Reply,
Those dependencies are created using field dependency.
Thanks,
Anish