Skip to content

Instantly share code, notes, and snippets.

@shrutis22
Last active August 21, 2018 16:45
Show Gist options
  • Save shrutis22/f064c2eb49bac92f8e24705fd838e89d to your computer and use it in GitHub Desktop.
Save shrutis22/f064c2eb49bac92f8e24705fd838e89d to your computer and use it in GitHub Desktop.
<aura:component implements="lightning:availableForFlowScreens,flexipage:availableForRecordHome,force:hasRecordId" access="global">
<aura:attribute name="objectApiName" type="String" access="public" />
<aura:attribute name="fieldLabel" type="String" access="public" />
<aura:attribute name="fieldName" type="String" access="public" />
<aura:attribute name="selectedRecordId" type="String" access="public" />
<lightning:recordEditForm objectApiName="{!v.objectApiName}">
<label class="fieldLabel">{!v.fieldLabel}</label>
<lightning:inputField fieldName="{!v.fieldName}" onchange="{!c.handleOnChange}" />
</lightning:recordEditForm>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment