Last active
May 20, 2019 18:03
-
-
Save tccloudz/e2d0e17cd7c9052022663c30f56b7904 to your computer and use it in GitHub Desktop.
recordEditForm Aura Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:if isTrue="{!and(v.editFormType == 'recordForm')}" > | |
<lightning:recordEditForm recordId="{!v.recId}" objectApiName="{!v.objApiName}" onsuccess="{!c.saveSuccessful}"> | |
<lightning:messages /> | |
<aura:iteration items="{!v.fieldListArr}" var="fld"> | |
<lightning:inputField fieldName="{!fld}" /> | |
</aura:iteration> | |
<div class="slds-m-top_medium"> | |
<lightning:button variant="brand" type="submit" name="save" label="Save" /> | |
</div> | |
</lightning:recordEditForm> | |
</aura:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment