+ Start a Discussion
Rupali PophaliyaRupali Pophaliya 

lightning:recordEditForm form Issue


We have used lightning:recordEditForm to create the Lead record, When we have added the any Picklist field of Lead object on lightning:recordEditForm, it will not be appeared on the form. We have checked all Picklist field-level security and accessiblity. Despite this, the pick list is not appearing on the form.

Any help appreciated.


Khan AnasKhan Anas (Salesforce Developers) 
Hi Rupali,

Greetings to you!

1. Are you using Record Type?

According to lightning:recordEditForm Doc: https://developer.salesforce.com/docs/component-library/bundle/lightning:recordEditForm/documentation
If your org uses record types, picklist fields display values according to your record types. You must provide a record type ID using the recordTypeId attribute if you have multiple record types on an object and you don't have a default record type. Otherwise, the default record type ID is used.

2. Is it dependent picklist?

According to lightning:inputField doc: https://developer.salesforce.com/docs/component-library/bundle/lightning:inputField/documentation
Dependent picklists must be defined in your org before you can use them with lightning:inputField. Both controlling and dependent fields must be included in your component.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Raj VakatiRaj Vakati
Khans points are correct .. can u share the code and your Data model image of the object 
Rupali PophaliyaRupali Pophaliya

We have used the recordType to create a Lead record. We have provided the record Type Id to a recordTypeId attribute of lightning:recordEditForm.Also, we have checked the Picklists Available of record Type and tried with dependent and no dependent Picklist fields. Despite this the picklist is not appearing on the form. This is all under the happen system administrator profile.

Please check below screenshot of recordEditForm code, In code, We have used the dependent picklist( region__c dependent on Partner_type__c ) and no- dependent picklist Industry all three picklists not is not appearing on the form. Also, we have provided the RecordTypeId available for this picklist. 
User-added image