Skip to content

Instantly share code, notes, and snippets.

@justin-lyon
Created October 31, 2018 13:37
Show Gist options
  • Save justin-lyon/510193ac4d67e20ca9dda3c9bd8369e2 to your computer and use it in GitHub Desktop.
Save justin-lyon/510193ac4d67e20ca9dda3c9bd8369e2 to your computer and use it in GitHub Desktop.
lightning-record-form-issue
<aura:component description="Sample Record Form Issue" >
<lightning:card title="New Contact Compact">
<lightning:recordForm
objectApiName="Contact"
layoutType="Compact"
mode="edit"
columns="2" />
</lightning:card>
</aura:component>
@justin-lyon
Copy link
Author

According to the lightning:recordForm documentation in the Lightning Component Library

Create a Record: Use mode="edit" and pass in the object API name for the record to be created. Specify the fields using the fields attribute, or layoutType attribute to load all the fields defined on the given layout.

Expected Behavior: Display an empty Compact form to create a new record of the specified SObject Type.
Actual Behavior: Displays the Full size form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment