+ Start a Discussion
Ajay LAjay L 

dependent picklist value in defaultValues force:createRecord

Is there any limitation that dependent picklist value is not being populated using defaultValues in force:createRecord?
function(component, event, helper) { 
var iws = component.get("v.parentIWS"); 
console.log('IWS details Specialty__c: '+ iws.Specialty__c); 
var createRecordEvent = $A.get("e.force:createRecord"); 
"entityApiName": 'Apprenticeship__c', 
"recordTypeId": null, 
'defaultFieldValues': { 
'Opportunity__c': iws.Opportunity__c, 
'InternshipWorkSite__c': iws.Id, 
'Track__c': iws.TrackFamily__c, // Controlling Field 
'Job_Category__c': iws.Specialty__c, // Dependent Field 
'Employer__c' : iws.Account__c, 
'Cohort_Sem__c' : iws.Opportunity__r.Cohort_Sem__c, 
'Start_Date__c' : iws.InternshipStartDate__c, 
'Site_Location__c' : iws.Site_Located__c, 
'Internship_Cluster__c': '--None--' } 
createRecordEvent.fire(); }

'Track__c'-----> // Controlling Field
       'Job_Category__c'---> // Dependent Field of Track__c
                'Internship_Cluster__c'---> //Dependent Field of Job_Category__c

I am able to assign the value to only top level picklist, but not dependent fields. I can see the value printing in the console and also value available in the picklist. However the value is not populated in the form.

User-added image
This is not currently supported. Vote for this Idea - https://success.salesforce.com/ideaView?id=08730000000Br9GAAS.

Magulan Duraipandian