You need to sign in to do that
Don't have an account?
Rohit Sharma 66
Lightning component SObject dependent picklist
HI,
I have dependent picklist in SFDC custom object, and like to show these two picklist fields in Lightning component. For eg like parent filed A and its child picklist filed B, Based on picklist values in A field the value in B changes.
Can anyone suggest how to implement this in Lightning component. I tried using UI:inputSelect, but its not working.
I have dependent picklist in SFDC custom object, and like to show these two picklist fields in Lightning component. For eg like parent filed A and its child picklist filed B, Based on picklist values in A field the value in B changes.
Can anyone suggest how to implement this in Lightning component. I tried using UI:inputSelect, but its not working.
Try this code,
Thank you,
Amol Salve
Salesforce Developer
Can you share your code. So that I can figure it out where the issue is, in your code itself.
Logically you need to make a call to apex controller class to get the picklist data and then you need to bind that with your ui:inputSelect
You will get examples in the salesforce docs itself that how to call the apex controller method and to bind the data to ui:inputSelect.
You can refer the code provided by Amol, it will work.
What I suggest is to start doing by your own so that you will get familiar with the syntaxes.
Thanks,
Mustafa Jhabuawala
Technical Lead at Zen4orce (http://www.zen4orce.com)