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
geeta garggeeta garg 

Show dynamically all fields name In design attribute in lighting

Hi All,

I want to show all the fields name of the object in design attribute on which lighting component is added. But i am unable to show the all field.
For ex : I am adding the lighting component on Account object then all the fields of account need to show in design attribute. If i will add on contact then contact field will show.

Please suggest for the above question.

Thanks,
Geeta Garg
Best Answer chosen by geeta garg
Amit Singh 1Amit Singh 1
Hi Geeta,

Currently we can create dymanic picklist for fields as you wanted to use component as generic. We can display list of sOvbjects.

Visit below Link.
http://sunil02kumar.blogspot.in/2017/03/why-to-use-design-resource-in-lightning.html (http://sunil02kumar.blogspot.in/2017/03/why-to-use-design-resource-in-lightning.html" target="_blank)
Thanks,
Amit