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
Jagadeesh AdaveniJagadeesh Adaveni 

How to Populate Parent object picklist selected values on child object picklist?

Hi All,

I have Parent object with multiselect picklist(CC,ACH,Cash,Check).
I have Child Object picklist with same values. Here Student Edit and Detail pages are Visualforce pages.
Requirement is Whatever the picklist values selected in Parent object those values only be populated on Child object and remainig values should not be visible. I tried with following Code but remaining values are visible.
Controller:
--------------

String parenturl = apexPages.currentPage().getParameters().get('retURL');
                
                parenturl .trim();
               
                if(parenturl .contains('/'))
                {
                    parenturl = parent .subString(1);
                   
                }
                Id locIdId = Id.valueOf(parent url);

child.multiselect__c = child.Parent__r.picklist__c;

Thanks
Jagadeesh
SonamSonam (Salesforce Developers) 
If I understand this correctly, you are trying to create dependent picklist across objects..right?

Pls check the followng thread which has a couple of ideas how people have implemented this using trigger on the parent object:
https://success.salesforce.com/answers?id=90630000000hHJJAA2

This feature idea is also under consideration as can be seen on our idea exchane:
https://success.salesforce.com/ideaView?id=08730000000BrfBAAS