Skip to content

Instantly share code, notes, and snippets.

@tccloudz
Created May 20, 2019 18:04
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/ad473511954d2b41d85c48e434df4f24 to your computer and use it in GitHub Desktop.
Save tccloudz/ad473511954d2b41d85c48e434df4f24 to your computer and use it in GitHub Desktop.
recordEditForm LWC Snippet
<lightning-record-edit-form record-id={recId} object-api-name={objApiName} onsuccess={handleSuccess}>
<template for:each={fieldListArr} for:item='field'>
<lightning-input-field field-name={field} key={field}>
</lightning-input-field>
</template>
<br/>
<br/>
<lightning-button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Save">
</lightning-button>
</lightning-record-edit-form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment