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
James HayesJames Hayes 

The inline edit-Enabled Picklist Error

Hey All, 

I am getting this error when trying to build an inline editable opportunity view.

"The inline edit-enabled dependent picklist 'Deal Desk Sub-Stage' requires its controlling field 'Stage' to be present on the page."

Here is my code, 
 
<apex:page standardController="Opportunity" recordSetVar="Ops">
    <apex:form >
        <apex:pageBlock title="My List of Opportunities">
            <apex:pageBlockTable value="{!ops}" var="o">
                <apex:column value="{!o.Name}"/>
                <apex:column value="{!o.Account.Name}"/>
                <apex:column value="{!o.Amount}"/>
                <apex:column value="{!o.StageName}"/>
                <apex:column value="{!o.CloseDate}"/>
                <apex:column value="{!o.Go_Live_Date__c}"/>
                <apex:column value="{!o.StageName}"/>
                <apex:column value="{!o.Deal_Desk_Sub_Stage__c}"/>
                
            </apex:pageBlockTable>
            <apex:inlineEditSupport />
        </apex:pageBlock>
    </apex:form>
</apex:page>

The StageName is the controlling field.  But it still gives this error.  Can I get some help? 
 
Best Answer chosen by James Hayes
Roshni RahulRoshni Rahul
Hi James,

Please check the dependency picklist consideration - Don’t mix inline edit-enabled fields with regular input fields from the same dependency group. For example, don’t mix a standard input field for a controlling field with an inline edit-enabled dependent field

https://help.salesforce.com/articleView?id=000199154&language=en_US&type=1
 
<apex:page standardController="Opportunity" recordSetVar="Ops">
    <apex:form >
        <apex:pageBlock title="My List of Opportunities">
            <apex:pageBlockTable value="{!ops}" var="o">
                <apex:column value="{!o.Name}"/>
                <apex:column value="{!o.Account.Name}"/>
                <apex:column value="{!o.Amount}"/>
                <apex:column value="{!o.StageName}"/>
                <apex:column value="{!o.CloseDate}"/>
                <apex:column value="{!o.Go_Live_Date__c}"/>
                <apex:column value="{!o.StageName}">
                <apex:inlineEditSupport /></apex:column>
                <apex:column value="{!o.Deal_Desk_Sub_Stage__c}">
                <apex:inlineEditSupport /></apex:column>
            </apex:pageBlockTable>
            
        </apex:pageBlock>
    </apex:form>
</apex:page>

For further reference, refer the link https://developer.salesforce.com/forums/?id=906F0000000BNq3IAG

If my answer is informative for you, please mark it as best answer.

Regards,
Roshni