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
Nithun GangulaNithun Gangula 

In Lightning Experience force:createRecord is not prefilling the dependent picklist field. Did anyone face this issue ?

Nithun GangulaNithun Gangula
 var createOpportunityEvent = $A.get("e.force:createRecord"); 
createOpportunityEvent.setParams({
                    "entityApiName" : "Opportunity",
                    "recordTypeId" : typeid,
                    "defaultFieldValues" : {
                        "Name": oName,
                        "AccountId": cName,
                        "StageName": stage,
                        "CloseDate": closeDateLocale,
                         "PolicyTypeDscr__c": policyType,
                        "PlanTypeDscr__c": planType,
                        
                    }
                });
createOpportunityEvent.fire(); 

I'm trying to prefill opportunity fields using QuickAction calling a component which would fire the above event. I am able to prefill all the fields except the dependency field - PlanTypeDscr__c, it depends on PolicyTypeDscr__c field.