Skip to main content
Hi,

I have a custom object with 2 global picklists on it. These are then marked as dependant.

When I edit the record on a standard page the dependant picklists work correctly.

When I edit the record from a visualforce page the dependant picklist is read only and looks empty.

I have checked the permissions, its via the admin profile and every thing is definately turned on and editable. 

I can't see why it wouldn't work. If I remove the dependancy the both fields are editable again on the visualforce page.

Thanks

Sarah
5 Antworten
  1. 20. Feb. 2016, 09:46
    Hi,

    My code is:

    <apex:page showHeader="false" sidebar="false" showChat="false" standardController="Views_Renewal_Form__c" >

    <apex:form id="updateRenewalForm" forceSSL="true" style="margin-left: auto; margin-right: auto; width: 90%">

    <apex:pageBlock mode="maindetail" >

    <apex:pageBlockButtons >

    <apex:commandButton value="Save" action="{!save}"/>

    </apex:pageBlockButtons>

    <apex:inputfield value="{!Views_Renewal_Form__c.Agreement_length1__c}"/>

    <apex:inputfield value="{!Views_Renewal_Form__c.Payment_schedule_preference1__c}"/>

    </apex:pageBlock>

    </apex:form>

    </apex:page>

    And screenshot: 

    Hi,My code is:<apex:page showHeader=

    Thanks

    S
0/9000