0

I've noticed that recordEditForm fails to load picklist values. It saves them properly, but try to reload page and picklist fields are blank, while checkboxes and text fields are fine.

Feels like a bug right?

    <lightning:recordEditForm
            recordId="{!v.recordId}"
            objectApiName="Opportunity">
        <lightning:messages />
        <lightning:layout >
            <lightning:layoutItem>
                <lightning:inputField fieldName="Some_Boolean__c"/>
                <lightning:inputField fieldName="Some_Picklist__c"/>
            </lightning:layoutItem>
        </lightning:layout>
    </lightning:recordEditForm>
0

Yes.Even I faced similar Issue.

Its the problem of new release, So

   <lightning:inputField>

will not work for picklist,You can raise the case for salesforce (It may take some time) or You can write custom Logic for picklist values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.