You need to sign in to do that
Don't have an account?
Dippan 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
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:
Can anybody please help me with the above issue?
Thank you.
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.
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