Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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