Skip to content

Instantly share code, notes, and snippets.

@tccloudz
Last active May 20, 2019 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tccloudz/e2d0e17cd7c9052022663c30f56b7904 to your computer and use it in GitHub Desktop.
Save tccloudz/e2d0e17cd7c9052022663c30f56b7904 to your computer and use it in GitHub Desktop.
recordEditForm Aura Snippet
<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