+ Start a Discussion
Swathi V 25Swathi V 25 

Controlling and Dependent picklist on the lightning page

Hi all,

I have an custom object named country with two picklist fields country and states.  Country is the controlling field for States.  Now I want to display these two picklist in the lightning page with the controlling and dependent picklist behavior.  Kindly let me know how I can achieve this.

Thanks in advance

Regards

V Swathi
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Swathi,

May I suggest you please refer the below link for reference on to Create Dependent Picklist fields In Lightning Component. Hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution to similar kind of questions.

Thanks
Rahul Kumar
 
Arjun Ghosh 9Arjun Ghosh 9
Yes, its a known issue.You may vote for this idea if you feel

Method/alternate way to easily access dependent picklist fields in Lightning Component (https://success.salesforce.com/ideaView?id=0873A000000LnhyQAC)
https://success.salesforce.com/ideaView?id=0873A000000LnhyQAC
kabukabu
I works with    lightning:recordEditForm
For example:
           <lightning:recordEditForm recordId=""
                                          objectApiName="Case">
                     <lightning:inputField fieldName="Subject" />
                    <lightning:inputField fieldName="Type" />
                    <lightning:inputField fieldName="Case_Sub_Type__c" />
                   
                 </lightning:recordEditForm>
 
Francis A.Francis A.
There are cases where lightning:recordEditForm does not work, say when you use it inside an aura:iteration tag. The limitation there is that both the controlling and dependent picklists need to be rendered at the same time for it to work.