You need to sign in to do that
Don't have an account?
Swathi 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
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
May I suggest you please refer the below link for reference on to Create Dependent Picklist fields In Lightning Component.
- http://www.sfdcmonkey.com/2017/02/18/dependent-picklist-fields-lightning-component/
- http://www.sfdcmonkey.com/2016/12/05/how-to-fetch-picklist-value-from-sobject-and-set-in-uiinputselect/
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
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
For example:
<lightning:recordEditForm recordId=""
objectApiName="Case">
<lightning:inputField fieldName="Subject" />
<lightning:inputField fieldName="Type" />
<lightning:inputField fieldName="Case_Sub_Type__c" />
</lightning:recordEditForm>