You need to sign in to do that
Don't have an account?
Jagadeesh 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.
Thanks
Jagadeesh
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
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