+ Start a Discussion
Dippan PatelDippan Patel 

Could not find picklist values for field - StateCode and CountryCode - Lightning Component

Hi, 

I am using LightningRecordEdit Form. All the fields are displayed correctly in this format 
 
<lightning:inputField fieldName="{!field.apiName}" class="uiInput uiInput--default"/>

However,
I am getting the error when State and Country picklist is enabled in org. 

Both Picklists are disabled as there is no picklist value available.

Error: 
inputField.js: Could not find picklist values for field [StateCode]

inputField.js: Could not find picklist values for field [CountryCode]

Can anybody please help me with the above issue? 

Thank you. 
 
Andrew GAndrew G
checking the documentation 
https://developer.salesforce.com/docs/component-library/bundle/lightning-record-edit-form/documentation

Use the event.detail property to return the record UI, and picklist values if you include picklist fields in the form.

perhaps chase that as a line of investigation

regards
Andrew