You need to sign in to do that
Don't have an account?
IBM_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
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
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): MyRecordEditForm is the name of your Lex component.
All Answers
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): MyRecordEditForm is the name of your Lex component.
Your code is working fine for me, u can check your recordTypeid or recordtype permitions ....
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