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
IBM_TangPengIBM_TangPeng 

the inputfield can not show the value in the lightning:recordEditForm

Dear
I do not know why but the inputfiled can not show the value
and the source as below
does anyone can help me to fix it ?

<aura:component implements="lightning:actionOverride,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader,force:hasRecordId" access="global" >
            <lightning:recordEditForm aura:id="edit" recordId="0017F00000MWJ11QAH" recordtypeid="0127F000000SCs7QAG" objectApiName="Account"  >
                <div aura:id="msg">
                    <lightning:messages  />
                </div>
                     <lightning:inputField fieldName="Name" />
                       <lightning:inputField fieldName="Phone" />
                

                <footer class="slds-modal__footer">
                    <lightning:button variant="neutral" label="Cancel" onclick="{!c.cancelBtn}"/>
                    <lightning:button aura:id="submit" label="Save" variant="brand" type="submit"  />
                </footer>
            </lightning:recordEditForm>
    </aura:component>
it only the button can show but the input filed can not show anything

User-added image
Best Answer chosen by IBM_TangPeng
Alain CabonAlain Cabon
Hi,

This code works fine.

Do you have the correct right for the recordtype 0127F000000SCs7QAG for your profile?

You can test your component with a simple application with just the following code (preview button on the developer console):
<aura:application extends="force:slds">
    <c:MyRecordEditForm />
</aura:application>
MyRecordEditForm is the name of your Lex component.

All Answers

Alain CabonAlain Cabon
Hi,

This code works fine.

Do you have the correct right for the recordtype 0127F000000SCs7QAG for your profile?

You can test your component with a simple application with just the following code (preview button on the developer console):
<aura:application extends="force:slds">
    <c:MyRecordEditForm />
</aura:application>
MyRecordEditForm is the name of your Lex component.
This was selected as the best answer
Raj VakatiRaj Vakati
Make sure your proflile is having access for the record type and Record type Id is correct .. 
NanduNandu
Hi peng888,

Your code is working fine for me, u can check your recordTypeid or recordtype permitions ....
IBM_TangPengIBM_TangPeng
hi guys 
thanks for your support 
finally I found the issue 
I am not sure whether it is the general issue but I found that when I implement the source in the firefox or safari it does not work 
and it works in the ie or chrome and opera 

thanks  
best regards