• mahendiran jayavarma 19
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Do you know why this error getting? Can you please help me on this.

Thank you,
Mahendiran

Hi ,
I am trying to open the VF page and getting following error that The dependent picklist 'Survey' requires its controlling field 'Status' to be present on the page.

Since I have added the both field on the VF page. not sure why?

<apex:page standardController="Case" extensions="CSQuickCloseController" standardstylesheets="false" title="Quick Close" >
    <apex:pageMessages />
    <apex:Form >
       <apex:pageBlock rendered="{!IF( CurrentCase.Quick_Close__c == false, true, false)}">
           <apex:commandButton action="{!backToCasePage}" value="Back To Case" />
       </apex:pageBlock>
       <apex:pageblock title="Case Edit" rendered="{!IF( CurrentCase.Quick_Close__c == true, true, false)}">
           <apex:pageBlockButtons >
               <apex:commandButton value="Save" action="{!CustomSave}"/>
               <apex:commandButton action="{!Cancel}" value="Cancel" />
           </apex:pageBlockButtons>
           <apex:pageBlockSection title="User Efforts" rendered="{!IF(CurrentCase.RecordType.name != 'Training',true,false)}" columns="1">
               <apex:inputField value="{!CurrentCase.Less_than_15_minutes__c}"/>
               <apex:inputField value="{!CurrentCase.Hours_spent__c}"/>
               <apex:inputField value="{!CurrentCase.Minutes_spent__c}"/>
               <apex:outputField value="{!CurrentCase.Total_Time_Spent__c}"/>
           </apex:pageBlockSection>
           <apex:pageBlockSection title="Case Information" columns="1">
              <!--<apex:outputField value="{!CurrentCase.Account.Name}"/>-->
              <apex:inputField value="{!CurrentCase.AccountId}"/>
                <apex:inputField value="{!CurrentCase.ContactId}" required="true"/>
              <apex:outputField value="{!CurrentCase.Status}"/>
              <!--<apex:inputField value="{!CurrentCase.Reason}"/>-->
               <apex:outputField value="{!CurrentCase.Reason}"/>
               <apex:inputField value="{!CurrentCase.Internal_Comments__c}"/>
           </apex:pageBlockSection>
           <apex:pageBlockSection title="Categorisation" rendered="{!IF(CurrentCase.RecordType.name != 'FY16',true,false)}" columns="2">
               <apex:inputField value="{!CurrentCase.Type}" required="true"/>
               <apex:inputField value="{!CurrentCase.Member_Letter__c}"/>
               <apex:inputField value="{!CurrentCase.Category_level_2__c}"/>
               <apex:inputField value="{!CurrentCase.Member_Letter_Ref__c}"/>
               <apex:inputField value="{!CurrentCase.Category_level_3__c}" required="True"/>
               <apex:inputField value="{!CurrentCase.Business_Enhancements__c}"/>
               <apex:inputField value="{!CurrentCase.Category_level_4__c}" required="True"/>
               <apex:inputField value="{!CurrentCase.Business_Enhancement_Date__c}"/>
               <apex:inputField value="{!CurrentCase.Detail__c}" required="True"/>
           </apex:pageBlockSection>
           <!--<apex:pageBlockSection title="Billing Details" columns="2">
               <apex:outputField value="{!CurrentCase.Billing_category__c}"/>
               <apex:inputField value="{!CurrentCase.Quantity__c}"/>
               <apex:outputField value="{!CurrentCase.Rate__c}"/>
               <apex:inputField value="{!CurrentCase.Actual_Fee__c}"/>
               <apex:inputField value="{!CurrentCase.Approved__c}"/>
               <apex:inputField value="{!CurrentCase.Reason_for_Discount__c}"/>
               <apex:inputField value="{!CurrentCase.Reason_for_Cancellation__c}"/>
               <apex:inputField value="{!CurrentCase.Billing_BIN__c}"/>
           </apex:pageBlockSection>-->
          <apex:pageBlockSection title="Survey" rendered="{!IF(CurrentCase.RecordType.name != 'Finance' && CurrentCase.RecordType.name != 'Treasury' && CurrentCase.RecordType.name != 'FY16' && CurrentCase.RecordType.name != 'CBDIP' && CurrentCase.RecordType.name != 'Fraud'  && CurrentCase.RecordType.name != 'Training',true,false)}" columns="2">
              
               <apex:InputField value="{!CurrentCase.Do_Not_Survey_picklist__c}" required="True"/>
               <apex:inputField value="{!CurrentCase.Survey_Type__c}" required="True"/>
               <apex:InputField value="{!CurrentCase.DNS_Reason__c }" required="True"/>
               <apex:inputField value="{!CurrentCase.Multiple_Case_workers__c}"/>
               <apex:inputField value="{!CurrentCase.DNS_Reason_Other__c}"/>
           </apex:pageBlockSection>
       </apex:pageblock>  
    </apex:Form>
</apex:page>