The onerror action returns the following parameter:
Parameter | Type | Description |
error | Object | error: Data returned by the form submission. errorCode: An error code with information about the error; for example, INSUFFICIENT_PRIVILEGES. message: Description of error; we recommend using Lightning:messages to display your error messages in the UI. |
The onload action returns the following parameter:
Parameter | Type | Description |
recordUi | Object |
The object's metadata. For more information, see the User Interface API Developer Guide at https://developer.Salesforce.com/docs/atlas.en-us.212.0.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm. |
The onsubmit action returns the following parameter:
Parameter | Type | Description |
fields | Object |
The fields that are provided for submission during a record creation. For example, if you include a Lightning:inputField component with the Name field, it returns FirstName, LastName, and Salutation. |
The onsuccess action returns the following parameter:
Parameter | Type | Description |
response | Object | The response data associated with the record during a record creation or edit:
|
The attribute definitions for Lightning:recordEditForm are as follows:
Attribute Name | Attribute Type | Description | Required? |
body | Component |
The body of the component. In markup, this is everything in the body tag. |
|
class | String |
The API name of the object. |
|
objectApiName | String |
The API name of the object. |
Yes |
onerror | Action |
The action triggered when there is an error upon form submission. |
|
onload | Action |
The action triggered when the form data is loaded. |
|
onsubmit | Action |
The action triggered when the form is submitted. |
|
onsuccess | Action |
The action triggered when the form is saved. |
|
recordId | String |
The ID of the record to be displayed. |
|
recordTypeId | String |
The ID of the record type, which is required if you created multiple record types but don't have a default. |
The attribute definitions for Lightning:inputfield are as follows:
Attribute Name | Attribute Type | Description |
body | Component[] |
The body of the component. In markup, this is everything in the body of the tag. |
class | String |
A CSS class for the outer element, in addition to the base class. |
fieldName | String |
The API name of the field to be displayed. |
value | String |
The field value that overrides the existing value. |
onchange | Action |
The action triggered when the input value changes. |